TagSpecifications not being used in resource_aws_ebs_volume #1533
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
i have a use case of iam policies that restrict volume creation and usage by a shared tenant account at aws
aws has released tagspecifications for instances and volumes in march of 2017. part of this is the aws:requesttag and the ec2:resourcetag.
due to the implementation of the aws_ebs_volume. if i have a restricted policy using the condition of aws:requesttag/Name, terraform will fail to create the volume as the api first creates the volume then applies the tags.
Expected Behavior
terraform resource creation of a volume, if tags for volume are passed in should be sent as part of the tagspecification so that aws:requesttags are configured
Actual Behavior
the current code first creates the volume. Upon successful creation of the volume, tags are subsequently applied
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
References
can not find any open github issues.
here is the code block i'm referencing
which is already using some of the updated go api
The text was updated successfully, but these errors were encountered: