-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 - tagging of resources #1296
Comments
@catsby feel free to modify and/or reorganise things if needed. |
Excellent, thanks @radeksimko ! |
Right now I've duplicated the I plan to introduce a simple Each resource to be responsible for converting from the simple Most of the ec2 resources should be easy and not require their own file. In the end, all this is to reuse those three funcs mentioned, as much as possible. |
It is great that you are tracking this, now that AWS has implemented the Resource Groups UI tags will become even more valuable going forward. |
ASG Tagging was just merged with #1319 |
Any update on this? Eagerly awaiting tagging for EBS volumes so I can convince my boss that terraform supports all our use cases. 👍 |
👍 This is one of the things we're waiting on too. |
@radeksimko Awesome thanks! Is it significantly different to provide tagging for the volumes from the block_device configuration in aws_instance? I guess I need to learn Go. |
That's my use case too - I want to be able to tag |
@jtopper @arothian The So if you want to tag a volume, you'll need to use this [1] I was looking here https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html |
@phinze: Ah yes, you're quite right. I misread how we're doing that in our existing fog-based tooling, where we're actually doing something similar to what you describe here. Thanks! (and thanks @radeksimko - hit me up for a beer next time we're in the same place!) |
Tags are now also supported on CloudFront distributions (since 2016/08/01 apparently):
I did not find a corresponding issue, should I create one? |
Hey friends I'm going to close this meta-issue now. If you find a resource that is missing tag support, please open a new issue for it. Thanks! |
is it possible to update tags on a terraform managed ASG from the cli |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
As requested by @catsby in #1080 (comment) I'm creating this meta-issue to track all tagging functionality for AWS in TF.
EC2-related tagging
Existing
It's worth pointing out that the existing
./builtin/providers/aws/tags.go
should really be calledec2_tags.go
as it in fact uses the EC2 API only and deals with tags that are related to EC2 only which are currently following:aws_instance
aws_internet_gateway
aws_network_acl
aws_route_table
aws_security_group
aws_subnet
aws_vpc
aws_vpc_peering_connection
Missing
Here's the full list of EC2 resources that can be tagged using the same API endpoint which means that we're missing tagging functionality in the EC2 world for these:
- probably unrelated to TerraformAMI
- Added in Add support for AWS customer gateways #1746aws_customer_gateway
aws_dhcp_options
- not supported by TF (yet)EBS Volume
- tagging not implemented, most likely should go underaws_instance.block_device.tags
Support AWS Elastic Network Interfaces (ENI) #1149 was mergedaws_network_interface
- currently auto-managed along with EC2 instances to assign public IP, not sure if this would be useful as a separate resource, maybe related to Support AWS Elastic Network Interfaces (ENI) #1149 ?aws_reserved_instances
- not supported by TF (yet)aws_spot_instance_request
- provider/aws: tag the spot instance. #4380- probably unrelated to TerraformSnapshot
Added in provider/aws: Add Support For AWS VPN Gateways using aws-sdk-go #1137aws_vpn_gateway
- not supported by TF (yet)aws_vpn_connection
- not supported by TF (yet) - Adding CRUD support for Customer Gateway for AWS VPC. #838 Resources to manage AWS vpn connections, customer and virtual gateways #1011 AWS VPN Resources #551EC2-UNrelated tags
I think most of the resources having the simple tag structure as below 🔽
may theoretically work with the existing tagging logic as long as we can abstract the EC2-specific API calls & data-types that we currently have in
./builtin/providers/aws/tags.go
.Resources that would benefit from this as these have the same
Tag
structure but not part of the EC2 group:cloudformation
- provider/aws: Add aws_cloudformation_stack #2636elasticbeanstalk
- provider/aws: Elastic Beanstalk Application and Environment #3157elb
-tagging not implemented, but possible - provider/aws: Add tag support to ELB #1289emr
- not supported by TF (yet)kinesis
- provider/aws: Allow tags for kinesis streams #3397rds
- tagging not implemented, but possible - Add Tags to AWS RDS #1292redshift
- not supported by TF (yet)EC2-UNrelated requiring extra care
All these will most likely require resource-specific code for handling tags
- #1080autoscaling
route53
- #1312s3
The text was updated successfully, but these errors were encountered: