[Enhancement]: support image id override in aws_ec2_fleet #28915
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Description
The
override
block in theaws_ec2_fleet
resource doesn't currently support overriding image ID, but the AWS API does already support it:https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_FleetLaunchTemplateOverridesRequest.html
This makes launching an EC2 fleet of mixed AMIs impossible via Terraform, because
launch_template_config
is also constrained to exactly one, when the underlying CreateFleet API allows a maximum of 50.Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
No response
References
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_FleetLaunchTemplateOverridesRequest.html
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: