Skip to content
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:policy/CloudWatchAgentServerPolicy is lacking ec2:DescribeTags policy #154

Open
interone-ms opened this issue Dec 18, 2023 · 1 comment

Comments

@interone-ms
Copy link

I am attempting to follow the instructions at https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-Setup.html. However the pod for Prometheus does not come up:

2023/12/18 01:28:20 Describe EC2 Tag Fail. Will retry the request: UnauthorizedOperation: You are not authorized to perform this operation. User: arn:aws:sts::xxx:assumed-role/yyy-workernodes/i-zzz is not authorized to perform: ec2:DescribeTags because no identity-based policy allows the ec2:DescribeTags action

The most likely cause is that the managed policy arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy is lacking said permission.

@bhaskar-pv
Copy link

Same issue here. Also after giving the access of ec2:DescribeTags for that instance, I am getting is not authorized to perform: ec2:DescribeTags because no identity-based policy allows the ec2:DescribeTags action\n\tstatus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants