ansible-aws-infra-services
ansible-aws-infra-services copied to clipboard
Document IAM policy for EC2 instances (minimum role)
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/instance_IAM_role.html
Also probably relevant:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/check-service-role.html
And I believe I had to add the following to the ecsServiceRole to have ECS tasks self-register properly with ELB:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupIngress",
"ec2:Describe*",
"elasticloadbalancing:DeregisterInstancesFromLoadBalancer",
"elasticloadbalancing:DeregisterTargets",
"elasticloadbalancing:Describe*",
"elasticloadbalancing:RegisterInstancesWithLoadBalancer",
"elasticloadbalancing:RegisterTargets"
],
"Resource": "*"
}
]
}
yes and yes. We're actually using IAM roles for ecs tasks and that works well. We need to move that kind of documentation to a Wiki