-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add variable for publishing egress IP addresses #240
Conversation
It is a boolean value that specifies whether EC2 instances in the operations subnet should be tagged to indicate that their public IP addresses may be published.
…gress IP publishing
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.
This seems pretty solid. In addition to my one feedback item I would like to raise maybe making an issue to expand functionality to allow control over which instances of a given type have their IP information published e.g. I want Windows0
to be private but Windows1
to be published.
Co-authored-by: Nick <[email protected]>
@mcdonnnj That's a good idea and we should keep it in mind, but until someone comes to us with that as a requirement, I don't think we need to worry too much about it. Do I have your approval on this PR? |
This change aligns with the code that sets this tag in cisagov/cool-assessment-terraform (see cisagov/cool-assessment-terraform#240).
This change aligns with the code that sets this tag in cisagov/cool-assessment-terraform (see cisagov/cool-assessment-terraform#240).
Yeah I meant it as a "feature idea" issue just to document the thought. |
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.
LGTM ✔
Understood - I put this idea in #242. Feel free to make any edits as you see fit. |
🗣 Description
This PR adds a new Terraform variable (
publish_egress_ip_addresses
) that specifies whether EC2 instances in the operations subnet should be tagged to indicate that their public IP addresses may be published.💭 Motivation and context
This is useful for deconfliction purposes and it allows us to control publishing of IP addresses on a per-assessment (per-Terraform workspace) basis, which is a requirement of https://github.com/cisagov/cool-system-internal/issues/125.
IP address publishing will be handled via the code in
cisagov/publish-egress-ip-lambda
andcisagov/publish-egress-ip-terraform
.🧪 Testing
I tested this by running a
terraform plan
for an environment with:publish_egress_ip_addresses = true
publish_egress_ip_addresses
In the first case, I confirmed that the plan wanted to set
"Publish Egress" = "true"
for all of the correct instances/EIPs.In the second case, I confirmed that the plan wanted to set
"Publish Egress" = "false"
for all of the correct instances/EIPs.✅ Pre-approval checklist
to reflect the changes in this PR.
✅ Post-merge checklist
publish_egress_ip_addresses