Created
August 19, 2021 16:17
-
-
Save bruceharrison1984/eb580febb1b8875bc02f9ce19d623de1 to your computer and use it in GitHub Desktop.
IAM Role Permissions for ECS Prometheus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"ecs:List*", | |
"ecs:Describe*" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:ecs:<region>:<account-id>:cluster/<ecs-cluster-name>", | |
"arn:aws:ecs:<region>:<account-id>:task/<ecs-cluster-name>/*" | |
] | |
}, | |
{ | |
"Action": [ | |
"ecs:ListTasks", | |
"ecs:DescribeTaskDefinition" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
}, | |
{ | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucket" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::<s3-bucket-name>", | |
"arn:aws:s3:::<s3-bucket-name>/*" | |
] | |
}, | |
{ | |
"Action": [ | |
"aps:RemoteWrite" | |
], | |
"Effect": "Allow", | |
"Resource": "<AMP-resource-arn>" | |
} | |
], | |
"Version": "2012-10-17" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment