Skip to content

Addition of function to calculate rally point instance in AWS Auto Scaling Groups #33

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

Merged
merged 9 commits into from
Apr 8, 2021

Conversation

yardbirdsax
Copy link
Contributor

Fixes #32 as well as updating the Dockerfiles used for testing to use Python 3 (I could not get them to run using the older Python version).

… allows you to calculate a single 'rally point' instance that is part of an auto-scaling group, useful for executing bootstrapping commands once per ASG.
@yardbirdsax
Copy link
Contributor Author

I believe I should split out the unit tests here for the private vs public DNS name usage, but wanted to get this up in the meantime for a review other than that.

… set, and split out public vs private hostname call scenarios to be consistent with other tests.
@yardbirdsax
Copy link
Contributor Author

I split the unit tests out and also refactored the new tests such that the setup code for each set isn't duplicated. The latter isn't the same way other things are done, so if you'd like me to back that out and just have the code in each test let me know. Thanks!

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

…ncoding environment variables, which resolves some issues when running tests, as well as removing some un-necessary 'sudo' calls.
…l basic dependencies' section of the test Dockerfiles per comments from maintainer.
…oint' function to ensure that the function fails when the ASG does not contain the requisite number of instances after the given retry / wait period has elapsed.
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very close now. Just a couple final questions.

…ments / details around the use of the locale environment variables.
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM, thanks! I'll kick off tests now.

@brikis98
Copy link
Member

brikis98 commented Apr 8, 2021

Tests passed! Merging now.

@brikis98 brikis98 merged commit 391ad6d into gruntwork-io:master Apr 8, 2021
@brikis98
Copy link
Member

brikis98 commented Apr 8, 2021

@yardbirdsax yardbirdsax deleted the feature/aws_asg_rally branch January 22, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a function for calculating a rally point instance as part of an AWS Auto Scaling Group
2 participants