Skip to content

aws_autoscaling: ssm_session_permissions attribute of AutoScalingGroup() has no effect #25904

@IllarionovDimitri

Description

@IllarionovDimitri

Describe the bug

i have discovered the option ssm_session_permission in aws_autoscaling.AutoScalingGroup(), which can be set to True or False (default False) to update the instance profile accordingly to be able to connect to the instance via Session Manager, but the setting has no effect whatsoever.

asg = autoscaling.AutoScalingGroup(
# many lines omitted
ssm_session_permissions=True,
)

Expected Behavior

Setting the ssm_session_permissions=True adds new SSM permissions to IAM instance profile so the instance can be managed by Systems Manager

Current Behavior

Setting the ssm_session_permissions=True or False has no effect

Reproduction Steps

Set Setting the ssm_session_permissions=True and run cdk diff in a command line or deploy the setting
of autoscaling group

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.83.0

Framework Version

No response

Node.js Version

18

OS

Ubuntu 20.04.5 LTS

Language

Python

Language Version

3.10.6

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-autoscalingRelated to Amazon EC2 Auto ScalingbugThis issue is a bug.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions