-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
support-kms-key-id-for-root-volume #128
support-kms-key-id-for-root-volume #128
Conversation
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.
Bridgecrew has found infrastructure configuration errors in this PR ⬇️
@@ -141,6 +141,7 @@ resource "aws_instance" "default" { | |||
iops = local.root_iops | |||
delete_on_termination = var.delete_on_termination | |||
encrypted = var.root_block_device_encrypted | |||
kms_key_id = var.root_block_device_kms_key_id |
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.
Ensure that EC2 is EBS optimized
Resource: aws_instance.default | ID: BC_AWS_GENERAL_68
How to Fix
resource "aws_instance" "foo" {
...
+ ebs_optimized = true
}
Description
TBAThere 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.
@nitrocode what's the best way to address this, since optimization isn't in the scope of this PR?
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.
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.
@woz5999 I would just add a new input called ebs_optimized
and default it to true
.
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.
@nitrocode upon further inspection, it looks like the var already exists and is applied to the instance, but is defaulted to false. I'm happy to make the change to update the default, but the advisability of that is probably for someone at cloudposse to decide. lmk what you prefer.
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.
@nitrocode any guidance here?
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.
No worries then. We can fix that in a follow up pr.
/rebuild-readme |
Co-authored-by: nitrocode <[email protected]>
/rebuild-readme |
/test all |
/test all |
* support-kms-key-id-for-root-volume * Auto Format * Update variables.tf Co-authored-by: nitrocode <[email protected]> * Auto Format * Update main.tf * Update variables.tf * Update main.tf * Auto Format Co-authored-by: cloudpossebot <[email protected]> Co-authored-by: nitrocode <[email protected]>
* support-kms-key-id-for-root-volume * Auto Format * Update variables.tf Co-authored-by: nitrocode <[email protected]> * Auto Format * Update main.tf * Update variables.tf * Update main.tf * Auto Format Co-authored-by: cloudpossebot <[email protected]> Co-authored-by: nitrocode <[email protected]>
what
why