aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.51k stars 3.85k forks source link

Request support for SAM CDK Migration with SAM Transform Template. #30581

Open jacido opened 2 months ago

jacido commented 2 months ago

Describe the feature

Request support for SAM CDK Migration with SAM Transform Template.

Use Case

Problem. Couldn't replicate CDK Synth and what artifact to use.

Migrating to CDK won't resolve resource limit problem. CDK Migrate - Will generate L1s. Want L2s and L3s for high level constructs.

Restructure for code base construct. CDK Migrate is based on IAC Generator. Can scan your account and create managed stacks out of the resources you find. Console - IAC generator - Pick what you don't want to touch. Get all together in one CFN template for stateless stuff. Will turn into a managed stack.

CDK Migrate is based on IAC generator. Will have to go original stack to update with all retention deletion policies set to retain, then delete the stack in order to adopt it into a new stack. This will be a mandatory step.

Adopt stateless stuff into a stack. Adopt stack into CDK function. Most risk. Go onto CDK and move resources from nested stack.

Cons: Up against resource limits that has transforms which goes against resource limit. Use them together in transition? Customer is using SAM Transform Template. Complicates for migration for Transform and CDK Migrate.

Proposed Solution

No response

Other Information

No response

Acknowledgements

CDK version used

2.146.0

Environment details (OS name and version, etc.)

Python

pahud commented 2 months ago

Are you proposing the support to migrate from SAM Transform Template to CDK L2 constructs?

github-actions[bot] commented 2 months ago

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

jacido commented 2 months ago

@pahud Yes that is correct.