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

Support for instance_requrirements in launch_template to create EC2 instances #103

Open
kitos9112 opened this issue Feb 13, 2023 · 0 comments

Comments

@kitos9112
Copy link

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature (Use Case)

I would like to fire EC2 instances based on instance requirements rather than having to specify a given instance type. For example, I want a bare minimum of 4 vCPU with 16 GiBs of RAM across my EC2 instance fleet.

Expected Behavior

I don't mind if we implemented it in a non-backwards compatible way. Although, I believe it's doable. THe instance_requirements variable would clash if configured alongside the instance_type

Describe Ideal Solution

The TF provider has support for all of these elements:

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#instance-requirements

In fact, the OSS Terraform-modules equivalent leverages a similar approach

https://github.com/terraform-aws-modules/terraform-aws-autoscaling/blob/master/main.tf#L160

Alternatives Considered

Stop using this module to create ASGs and rely on other partners or a self-baked one.

Additional Context

N/A

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

No branches or pull requests

1 participant