Skip to content
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

AWS support for existing EIP (revised) #1292

Merged
merged 5 commits into from
May 20, 2019

Conversation

statik
Copy link
Contributor

@statik statik commented Jan 8, 2019

Description

This adds the option of associating the Algo instance to an existing Elastic IP in AWS instead of provisioning a new Elastic IP.

Motivation and Context

I have provisioned long-lived Elastic IPs with reverse DNS configured (https://aws.amazon.com/blogs/aws/reverse-dns-for-ec2s-elastic-ip-addresses/) and whitelists configured for those IPs at customer sites. I would like the ability to use one of my existing Elastic IPs when provisioning an Algo instance instead of provisioning a brand new EIP.

How Has This Been Tested?

This is a followup to #1281. I removed the dependency on Ansible 2.6 following the example of the local lightsail facts module and tested the changes work with a fresh virtualenv.

I have provisioned new algo instances with and without associating to pre-existing Elastic IP, and confirmed that the cloudformation stack deletes cleanly.

Types of changes

  • [] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • [] My change requires a change to the documentation.
  • [] I have updated the documentation accordingly.
  • [] I have added tests to cover my changes.
  • [] All new and existing tests passed.

This means that EIP support no longer requires Ansible 2.6
The local fact module has been named ec2_elasticip_facts
to avoid conflict with the ec2_eip_facts module whenever
the Ansible 2.6 upgrade takes place.

Signed-off-by: Elliot Murphy <[email protected]>
@jackivanov

This comment has been minimized.

@jackivanov jackivanov added this to the 1.1 milestone Mar 12, 2019
@jackivanov jackivanov added the 1.1 label Mar 19, 2019
roles/cloud-ec2/tasks/prompts.yml Outdated Show resolved Hide resolved
Signed-off-by: Elliot Murphy <[email protected]>
@jackivanov

This comment has been minimized.

@statik
Copy link
Contributor Author

statik commented May 17, 2019

Thank you @jackivanov! I have been flooded with some personal responsibilities and got stuck on this, thank you for pushing it forward and all your work on Algo.

@jackivanov jackivanov merged commit e3a6170 into trailofbits:master May 20, 2019
iBringit added a commit to iBringit/algo that referenced this pull request Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants