Skip to content

(iam): The naming conventions for IAM role names have not been verified #28502

@badmintoncryer

Description

@badmintoncryer

Describe the feature

There are characters that cannot be used in IAM role names. (e.g., "/")

I propose a feature for CDK to verify that it adheres to this naming convention.

Use Case

If a name containing forbidden characters is set for the role name, no error occurs at the stage of ‘cdk synth’, but it fails during deployment. Therefore, I believe it would be preferable to trigger an error at the synth stage.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.116.1

Environment details (OS name and version, etc.)

irrelevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-iamRelated to AWS Identity and Access Managementeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions