Did Not Have IAM Permissions To Process Tags On AWS - EC2 - Instance Resource - AWS Re - Post
Did Not Have IAM Permissions To Process Tags On AWS - EC2 - Instance Resource - AWS Re - Post
Ask question
/ Questions / Did not have IAM permissions to process tags on AWS::EC2::Instance resource
FEEDBACK
corresponding 'access-team' and 'access-project' tags are provided in the CloudFormation
Template. The CF Template and corresponding ABAC IAM Policy are attached.
However, I am able to create exact EC2 Instance manually without any issue via AWS EC2
Console case I am supplying corresponding 'access-team' and 'access-project' Tags during
EC2 Instance creation.
Could someone help me to narrow down the root of that issue and what exactly I should
change in IAM Policy to deploy CF Stack ?
TIA
Follow Comment
Topics
Tags
AWS CloudFormation
Language
https://repost.aws/questions/QUBBuDAuqwRqmDdDO8rbLV1g 1/6
23/01/2023, 20:02 Did not have IAM permissions to process tags on AWS::EC2::Instance resource | AWS re:Post
English
innos
asked 2 years ago 1110 views
Hi Guys,
2 My request has been resolved by AWS Support with following issue description :
==================================================
From the public docs, "When you create an EC2 instance with AWS CloudFormation
using the resource AWS::EC2::Instance, AWS CloudFormation makes two API calls:
RunInstances and CreateTags. RunInstances creates the instance and CreateTags applies
the necessary tags after the instance is created. The RunInstances request made by AWS
CloudFormation doesn't support the tags, but the API does support the tags." Please
refer to [1] for more information on the same.
So, the workaround for this issue is using "AWS::EC2::LaunchTemplate" resource for EC2
Instance and specify the required Tags on the Volume using "TagSpecification" property
in "AWS::EC2::LaunchTemplate" resource. Please refer [2][3] for more information.
Instance:
Type: 'AWS::EC2::Instance'
Properties:
LaunchTemplate:
LaunchTemplateId: !Ref RequiredTagsLaunchTemplate
Version: 1
InstanceType: r4.xlarge
.
.
RequiredTagsLaunchTemplate:
Type: 'AWS::EC2::LaunchTemplate'
Properties:
LaunchTemplateData:
TagSpecifications:
- ResourceType: Volume
Tags:
- Key: Env
Value: Dev
https://repost.aws/questions/QUBBuDAuqwRqmDdDO8rbLV1g 2/6
23/01/2023, 20:02 Did not have IAM permissions to process tags on AWS::EC2::Instance resource | AWS re:Post
References:
[1]
https://aws.amazon.com/premiumsupport
/knowledge-center/cloudformation-ec2-
iam-runinstances/
[2]
https://docs.aws.amazon.com/AWSCloudF
ormation/latest/UserGuide/aws-resource-
ec2-launchtemplate.html
[3]
https://docs.aws.amazon.com/AWSCloudF
ormation/latest/UserGuide/aws-
properties-ec2-launchtemplate-
tagspecification.html
I hope this information will be useful for somebody.
Alex
Comment innos
answered 2 years ago
https://repost.aws/questions/QUBBuDAuqwRqmDdDO8rbLV1g 3/6
23/01/2023, 20:02 Did not have IAM permissions to process tags on AWS::EC2::Instance resource | AWS re:Post
A good answer clearly answers the question and provides constructive feedback and encourages
professional growth in the question asker.
Clear
Post answer
Relevant questions
ntuple
asked 5 months ago
Krishna
asked a month ago
AWS-User-6176623
asked 3 months ago
How to separate organisation users permissions by the access level and environments?
ACCEPTED ANSWER
kostyanius
asked a month ago
https://repost.aws/questions/QUBBuDAuqwRqmDdDO8rbLV1g 4/6
23/01/2023, 20:02 Did not have IAM permissions to process tags on AWS::EC2::Instance resource | AWS re:Post
mj123
asked 5 months ago
IAM abac tag problems: User is not authorized to perform: execute-api:Invoke on resource
steve
asked 3 months ago
How to control per user per account permissions with IAM identity center?
rePost-User-7313203
asked 2 months ago
Resolving the error "Ensure IAM policies are attached only to groups or roles"
BigD63
asked 7 months ago
AWS-User-2695166
asked 8 months ago
S3 bucket permissions to run CloudFormation from different accounts and create Lambda
Funtions.
Alexa
asked a year ago
https://repost.aws/questions/QUBBuDAuqwRqmDdDO8rbLV1g 5/6
23/01/2023, 20:02 Did not have IAM permissions to process tags on AWS::EC2::Instance resource | AWS re:Post
Community Guidelines
https://repost.aws/questions/QUBBuDAuqwRqmDdDO8rbLV1g 6/6