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

Prometheus container access denied issue #3

Open
iamtejasmane opened this issue Apr 13, 2023 · 1 comment
Open

Prometheus container access denied issue #3

iamtejasmane opened this issue Apr 13, 2023 · 1 comment

Comments

@iamtejasmane
Copy link

Hi @santosh07bec , first of all, thanks for the efforts you have put into creating the ecs-prometheus repository, which I have found to be extremely helpful in my current project.

Issue: I have deployed all four containers successfully but facing this issue in the Prometheus container.

level=error ts=2023-04-13T02:55:13.45984975Z caller=ec2.go:184 component="discovery manager scrape" discovery=ec2 msg="Refresh failed" err="could not describe instances: AccessDenied: User: arn:aws:sts::9486709xxxxx:assumed-role/ecsTaskExecutionRole/a72e28e47203410faea0fc6f18c1f262 is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::9486709xxxxx:role/ecsInstanceRole\n\tstatus code: 403”

Steps were taken to resolve the issue:

  1. The IAM permissions for both the ecsTaskExecutionRole and ecsInstanceRole were reviewed.
  2. The DescribeInstances permission was assigned to both roles to ensure that they have the necessary access
  3. Ensured that the ports are opened for communication.

Can please you please tell me how I could resolve this?

Thank you!

@akki93
Copy link

akki93 commented Nov 9, 2023

Hi Santosh,
Really thanks for sharing the piece of code for Prometheus and Grafana stack along with CAdvisor. I am also facing totally similar issue as @iamtejasmane
Can you please suggest the fix here, as I tried providing the ECS with EC2ReadOnly Access which contains the DescribeInstances permission but it still fails.

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