-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update provider deprecations #117
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6bbb65f
elasticache, tgt group
4120f47
rm sid from iam policy docs (reduce churn)
c0a6f02
updates + readme
d34e110
fmt + default eks var
8d3558c
order
d6ef64e
eks cluster version
61c56bb
remove "inline_policies" from iam roles
bf0d571
removed extren comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,8 @@ variable "cluster_endpoint_public_access_cidrs" { | |
|
||
variable "cluster_version" { | ||
description = "Indicates AWS EKS cluster version" | ||
nullable = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we have a sane minimum here? |
||
type = string | ||
default = "1.21" | ||
} | ||
|
||
variable "create_elasticache_security_group" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,29 @@ resource "aws_sqs_queue" "file_storage" { | |
|
||
# Enable long-polling | ||
receive_wait_time_seconds = 10 | ||
|
||
# kms_master_key_id = var.kms_key_arn | ||
} | ||
|
||
|
||
resource "aws_s3_bucket" "file_storage" { | ||
bucket = "${var.namespace}-file-storage-${random_pet.file_storage.id}" | ||
|
||
force_destroy = !var.deletion_protection | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this also apply to |
||
|
||
# Configuration error if SQS does not exist | ||
# https://aws.amazon.com/premiumsupport/knowledge-center/unable-validate-destination-s3/ | ||
depends_on = [aws_sqs_queue.file_storage] | ||
} | ||
|
||
resource "aws_s3_bucket_acl" "file_storage" { | ||
depends_on = [aws_s3_bucket_ownership_controls.file_storage] | ||
|
||
bucket = aws_s3_bucket.file_storage.id | ||
acl = "private" | ||
} | ||
|
||
resource "aws_s3_bucket_cors_configuration" "file_storage" { | ||
bucket = aws_s3_bucket.file_storage.id | ||
|
||
cors_rule { | ||
allowed_headers = ["*"] | ||
|
@@ -23,21 +39,13 @@ resource "aws_s3_bucket" "file_storage" { | |
expose_headers = ["ETag"] | ||
max_age_seconds = 3000 | ||
} | ||
} | ||
|
||
server_side_encryption_configuration { | ||
rule { | ||
apply_server_side_encryption_by_default { | ||
kms_master_key_id = var.kms_key_arn | ||
sse_algorithm = var.sse_algorithm | ||
} | ||
} | ||
resource "aws_s3_bucket_ownership_controls" "file_storage" { | ||
bucket = aws_s3_bucket.file_storage.id | ||
rule { | ||
object_ownership = "BucketOwnerPreferred" | ||
} | ||
|
||
force_destroy = !var.deletion_protection | ||
|
||
# Configuration error if SQS does not exist | ||
# https://aws.amazon.com/premiumsupport/knowledge-center/unable-validate-destination-s3/ | ||
depends_on = [aws_sqs_queue.file_storage] | ||
} | ||
|
||
resource "aws_s3_bucket_public_access_block" "file_storage" { | ||
|
@@ -48,6 +56,20 @@ resource "aws_s3_bucket_public_access_block" "file_storage" { | |
ignore_public_acls = true | ||
} | ||
|
||
resource "aws_s3_bucket_server_side_encryption_configuration" "file_storage" { | ||
bucket = aws_s3_bucket.file_storage.id | ||
|
||
rule { | ||
apply_server_side_encryption_by_default { | ||
kms_master_key_id = var.kms_key_arn | ||
sse_algorithm = var.sse_algorithm | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
# Give the bucket permission to send messages onto the queue. Looks like we | ||
# overide this value. | ||
resource "aws_sqs_queue_policy" "file_storage" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd think we still want validation here that it's 5.7 or 8.