-
-
Notifications
You must be signed in to change notification settings - Fork 223
Add ssm patch support #104
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
Conversation
…rm-aws-ec2-instance into add_ssm_patch_support
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
…rm-aws-ec2-instance into add_ssm_patch_support
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
/test all |
1 similar comment
/test all |
/test all |
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 1 infrastructure configuration error in this PR ⬇️
I'd rename
to
|
ssm_patch.tf
Outdated
} | ||
|
||
module "label_ssm_patch_s3_log_policy" { | ||
enabled = local.ssm_patch_log_bucket_enabled |
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.
source and version should be before any other attributes
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.
please see comments
Co-authored-by: Andriy Knysh <[email protected]>
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 1 infrastructure configuration error in this PR ⬇️
…rm-aws-ec2-instance into add_ssm_patch_support
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 1 infrastructure configuration error in this PR ⬇️
Fixed |
/test all |
/test all |
/test all |
main.tf
Outdated
@@ -1,7 +1,7 @@ | |||
locals { | |||
enabled = module.this.enabled | |||
instance_count = local.enabled ? 1 : 0 | |||
volume_count = var.ebs_volume_count > 0 && local.instance_count > 0 ? var.ebs_volume_count : 0 | |||
volume_count = local.enabled && var.ebs_volume_count > 0 ? var.ebs_volume_count : 0 |
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.
why removing local.instance_coun > 0
?
Volumes are attached to instances, so if instance_count = 0
we prob should not try to attach
/test all |
what
why