I heavily use ECS Attributes on our containerized infrastructure. I couldn't find terraform docs to achieve this. Do I need to execute aws cli commands manually to apply those attributes after creating the infrastructure?
2 Answers
Terraform docs are pretty comprehensive, so if it’s not in the docs it’s probably not implemented yet.
However, they’re very responsive to feature requests posted as GitHub issues, particularly those that indicate that the feature is available via the AWS CLI (or more specifically, the AWS Go SDK). In my experience, feature requests I’ve raised have usually been available in a new AWS provider release within a month or so.
I’d suggest doing up a new issue here: https://github.com/terraform-providers/terraform-provider-aws/issues
(I did do a quick search to see if ECS attributes have been raised before and couldn’t see any at a quick glance, but you may like to as well!)
- 1,215
- 1
- 13
- 26
In Terraform, value_specs are a way of injecting extra key/value pairs into the create request to help with random vendor-specific data. Anyhow this is a workaround option and also it works well with OpenStack provider but I haven't tried with AWS. Could you please try this approach and post your comments.
value_specs {
Attrkey = AttrValue
}
- 11,366
- 2
- 35
- 62
- 111
- 2
-
1I think this is specific to the OpenStack provider, at least, I haven’t come across it in the AWS provider and one of the first results for ‘Terraform value_specs’ is https://www.terraform.io/docs/providers/openstack/r/dns_recordset_v2.html – Tim Malone Jun 23 '18 at 21:39