Skip to content

(cli): Support notification-arns in cdk import #23548

Description

@rdbatch

Describe the feature

When using the cdk import command (aws/aws-cdk-rfcs#52), there doesn't appear to be a way to pass the --notification-arns flag as you can do in a normal deployment. Since an import operation creates a cloudformation change set and --notification-arns is already a valid flag on the cdk deploy command, it's reasonable to expect that this paramer could be passed for cdk import as well.

Use Case

When updating Cloudformation stacks, processes that trigger off Cloudformation notifications and need a way to be able to pass the SNS topic so they can react to import operations triggered via CDK.

Proposed Solution

Since --notification-arns is already present and supported on cdk deploy, this should be implemented the same way to that someone who is used to using that flag on the deploy command can apply it to cdk import as well. This would be an optional parameter so it shouldn't negatively impact any existing workflows.

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.59.0 and 1.186.1

Environment details (OS name and version, etc.)

N/A - New Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions