amazon-ecs-cli
amazon-ecs-cli copied to clipboard
specify and existing Instance Profile
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"