AWS - how to pass a service link role to an autoscaling group using CDK/CloudFormation?

Viewed 381

Does anyone know how to pass a service linked role (autoscaling role with a suffix) to an autoscaling group by using CDK/CloudFormation?

I have managed to grant the default autoscaling service role access to a CMK living in another account. However, I don't want all autoscaling groups having the default role to have access to the key.

I assume that the best solution is to bootstrap the service linked role and grant it CMK access, but how do I pass the role? (This is not the instance assumable role)

1 Answers

The service linked role for Autoscaling is specified using ServiceLinkedRoleARN in AWS::AutoScaling::AutoScalingGroup. It is not related to instance assumed role.

Related