Skip to content

Commit

Permalink
fix(autoscaling): ssmSessionPermissions does not add managed policy t…
Browse files Browse the repository at this point in the history
…o role specified in launch template (#27220)

When we set ssmSessionPermissions to true, CDK adds `AmazonSSMManagedInstanceCore` managed policy to role specified in AutoScalingGroup construct. However, if the role specified in not AutoScalingGroup construct's prop but launch template, ssmSessionPermissions has no effect.

This PR solves the issue by adding the managed policy even when role is specified in launch template.

Closes #25904

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
tam0ri authored Sep 29, 2023
1 parent c5750d0 commit 20e4760
Show file tree
Hide file tree
Showing 9 changed files with 508 additions and 267 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 20e4760

Please sign in to comment.