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

User data parameter asg #100

Merged
merged 6 commits into from
Dec 28, 2015

Conversation

mwildehahn
Copy link
Contributor

I think we should come up with a more extensible ASG blueprint.

I needed the following changes to push an ASG for an ECS cluster and was in a hurry so didn't think too much about the structure.

Given that ASG are such a core piece of infrastructure, I thought I would open this up so we could discuss refactoring them to be more extensible.

From working with it, i think we should support:

  • Customiznig the LaunchConfiguartion parameters
  • Customizing the AutoScalingGroup parameters

@@ -165,9 +165,18 @@ def create_load_balancer(self):
GetAtt(elb_name, 'DNSName')],
Condition="SetupELBDNS"))

def get_launch_configuration_parameters(self):
Copy link
Member

Choose a reason for hiding this comment

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

I almost feel like this should return all of the parameters - and if people want to override any of them, they in theory could?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

like ImageId etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like we should come up with a standard for doing this. Anytime I have a slight divergence from one of the base blueprints, I have to either create a pull request to support a parameter that wasn't initially included or create my own subclass and copy paste.

Copy link
Member

Choose a reason for hiding this comment

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

With the way parameters are handled now you shouldn't have to copy/paste. Subclass, then modify _get_parameters. If you have an idea for a standard that works for everything, I'm all for it.

@mwildehahn
Copy link
Contributor Author

@phobologic addressed the above

@phobologic
Copy link
Member

Awesome.

phobologic added a commit that referenced this pull request Dec 28, 2015
@phobologic phobologic merged commit 1ab3111 into cloudtools:master Dec 28, 2015
@mwildehahn mwildehahn deleted the user-data-parameter-asg branch January 8, 2016 18:52
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.

2 participants