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 "override" property of EC2 autoscale groups #57

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Lawstorant
Copy link

what

This enables the use of "override" property for mixed instances where one autoscale group can have multiple instance types, to avoid issues with unfillable spot requests. This is already supported in the "cloudposse/ec2-autoscale-group/aws" module.

why

To expose the functionality of the underlying module and make ECS infra configuration more resilient,

references

https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateOverrides.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group.html#mixed_instances_policy-1
https://github.com/cloudposse/terraform-aws-ec2-autoscale-group/tree/main?tab=readme-ov-file#input_mixed_instances_policy

@Lawstorant Lawstorant requested review from a team as code owners October 8, 2024 08:52
@mergify mergify bot added the triage Needs triage label Oct 8, 2024
@Lawstorant
Copy link
Author

Tell me if I should remove the ec2-autoscale-group version bump because I can see that there's already a PR for that, though it hasn't been pulled for a month. These changes were tested on live infra and are working as they should (well, I'm just exposing already available functionality).

@kevcube
Copy link

kevcube commented Oct 8, 2024

/terratest

@mergify mergify bot removed the triage Needs triage label Oct 8, 2024
@kevcube kevcube added minor New features that do not break anything feature New functionality labels Oct 8, 2024
@Lawstorant
Copy link
Author

I don't think I can fix the issue with the opentofu test

@Lawstorant
Copy link
Author

@kevcube cen we run the test again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality minor New features that do not break anything
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants