-
Notifications
You must be signed in to change notification settings - Fork 337
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
EC2 launch template support #70
Conversation
@machulav Does this look like something you'd like to support? If so, do you want to move in this direction (retaining backwards-compatibility by just adding a new input), or do you want to aim for Why I'm asking: launch templates, while IMO useful, do mean that we'd add some indirection into the use of this action, so I'm not sure if it aligns with the original idea you had with the |
Hi @jpalomaki , thanks a lot for the contribution! We tested your fix by running the Github Action from your branch, but we've observed the following:
Curious if you tested on your side and if it was working for you? Thanks! |
What kind of incorrect configuration?
What do you mean by not seem to be using the launch template?
Nope, my code is untested atm, hence this PR is a draft. Some fixes have already been done here: fac#3, which we should probably incorporate into this PR. |
A configuration which would prevent the EC2 instance to launch, even when trying manually in the AWS console. An incompatible subnet and security group for example
Instance is still be provisioned and started, but with settings different from the launch template |
Adds a new optional input
ec2-launch-template
, which refers to an existing EC2 launch template by name (human-readable, unlike a template ID).An EC2 launch template can be used to define various EC2 instance parameters, including (but not limited to): AMI, instance type, subnet ID, multiple security group IDs, spot options and public IPv4 address attachment.
Can be used alone, or in combination with the individual EC2-related action inputs (AMI ID, instance type, subnet ID, security group ID).
Example Cloudformation template for setting up a launch template.
Should be backwards-compatible. Documentation probably needs some more work.
Ought to fix #65