-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_launch_template don't support tags for "spot-instances-request" and "elastic-gpu" #14558
Comments
Hey, that is not supported by the API itself.
|
Hey @DrFaust92, yeah I'm not sure what they mean with that, because you can do it via AWS CLI.
https://docs.aws.amazon.com/cli/latest/reference/ec2/create-launch-template-version.html This is the output that I got: {
"LaunchTemplateVersion": {
"LaunchTemplateId": "<LT_ID>",
"LaunchTemplateName": "<LT_NAME>",
"VersionNumber": 6,
"VersionDescription": "TestTags",
"CreateTime": "2020-08-11T15:04:23.000Z",
"CreatedBy": "<USER_ARN>",
"DefaultVersion": false,
"LaunchTemplateData": {
"EbsOptimized": true,
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
"Encrypted": true,
"DeleteOnTermination": true,
"KmsKeyId": "<KMS_ARN>",
"VolumeSize": 50,
"VolumeType": "gp2"
}
}
],
"InstanceType": "c5.2xlarge",
"Monitoring": {
"Enabled": true
},
"Placement": {
"GroupName": "<LT_NAME>",
"Tenancy": "default"
},
"InstanceInitiatedShutdownBehavior": "terminate",
"TagSpecifications": [
{
"ResourceType": "spot-instances-request",
"Tags": [
{
"Key": "Key-test",
"Value": "Value-test"
}
]
}
],
"InstanceMarketOptions": {
"MarketType": "spot",
"SpotOptions": {
"MaxPrice": "0.2",
"SpotInstanceType": "persistent",
"BlockDurationMinutes": 720,
"InstanceInterruptionBehavior": "terminate"
}
},
"HibernationOptions": {
"Configured": false
},
"MetadataOptions": {
"HttpTokens": "required",
"HttpPutResponseHopLimit": 1,
"HttpEndpoint": "enabled"
}
}
}
} |
Huh, let me check this via the sdk and I'll add the missing options. Docs are out of date apparently. Thanks for finding this! |
Thanks @LozanoMatheus, i opened a PR to add support. i saw in the console that you can add support for these! too bad docs are not updated on this |
Support for these additional values in the validation has been merged and will release with version 3.3.0 of the Terraform AWS Provider, later this week. Thanks to @DrFaust92 for the implementation. 👍 |
This has been released in version 3.3.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Set the tags for "spot-instances-request"
Actual Behavior
Exit with error
Steps to Reproduce
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: