Skip to content

Instantly share code, notes, and snippets.

@bruceharrison1984
Created August 19, 2021 16:17
Show Gist options
  • Save bruceharrison1984/eb580febb1b8875bc02f9ce19d623de1 to your computer and use it in GitHub Desktop.
Save bruceharrison1984/eb580febb1b8875bc02f9ce19d623de1 to your computer and use it in GitHub Desktop.
IAM Role Permissions for ECS Prometheus
{
"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