-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: Add tag to SSM param to allow global access #201
base: main
Are you sure you want to change the base?
fix: Add tag to SSM param to allow global access #201
Conversation
@@ -56,6 +56,10 @@ run "aws_vpc_unit_test" { | |||
error_message = "Should be: String" | |||
} | |||
|
|||
assert { | |||
condition = aws_ssm_parameter.combined_nat_gateway_eips.tags.Copilot-application == "__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.
condition = aws_ssm_parameter.combined_nat_gateway_eips.tags.Copilot-application == "__all__" | |
condition = aws_ssm_parameter.combined_nat_gateway_eips.tags.Copilot-application == "__all__" | |
error message = "Should be: __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.
Hard to get formatting right in github suggestion, but that's why codebuild terraform-tests is failing. And I think it needs tf lint or whatever running again
@@ -116,7 +116,9 @@ resource "aws_ssm_parameter" "combined_nat_gateway_eips" { | |||
name = "/${var.arg_name}/EGRESS_IPS" | |||
type = "String" | |||
value = join(",", local.nat_gateway_eips) | |||
tags = local.tags | |||
tags = merge(local.tags, { | |||
Copilot-application = "__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.
Should this be:
Copilot-application = "__all__" | |
copilot-application = "__all__" |
?
Copilot services by default can only access SSM params tagged with the application and environment. An associated change has been made in platform-tools to allow services to access any SSM parameter tagged with
Copilot-application = "__all__"
This PR adds the tag to the SSM parameter containing egress IPs for a given VPC.