amazon-ecs-cli icon indicating copy to clipboard operation
amazon-ecs-cli copied to clipboard

specify and existing Instance Profile

Open donhill opened this issue 3 years ago • 0 comments

I know using the ecs-cli I can specify an instance-role. Is there a way to specify an existing InstanceProfile when running `ecs up' ?

So I would like to use an existing instance profile instead of creating app-dev-001-EcsInstanceProfile-1O9LBWGDGGHP3

example error

iam:CreateInstanceProfile User: arn:aws:sts::xxx:assumed-role/ec2-gitlab-runner/i-instance is not authorized to perform: iam:CreateInstanceProfile on resource: arn:aws:iam::xxx:instance-profile/app-dev-001-EcsInstanceProfile-1O9LBWGDGGHP3" resourceType="AWS::IAM::InstanceProfile"

donhill avatar Feb 19 '21 19:02 donhill