Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
2 tasks
jacido opened this issue Jun 18, 2024 · 3 comments
Open
2 tasks

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

jacido opened this issue Jun 18, 2024 · 3 comments
Labels
@aws-cdk/aws-sam Related to AWS Serverless Application Model effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3

Comments

@jacido
Copy link

jacido commented Jun 18, 2024

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

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

CDK version used

2.146.0

Environment details (OS name and version, etc.)

Python

@jacido jacido added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 18, 2024
@github-actions github-actions bot added the @aws-cdk/aws-sam Related to AWS Serverless Application Model label Jun 18, 2024
@pahud
Copy link
Contributor

pahud commented Jun 19, 2024

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

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p3 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jun 19, 2024
Copy link

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.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jun 21, 2024
@jacido
Copy link
Author

jacido commented Jun 25, 2024

@pahud Yes that is correct.

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jun 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
@aws-cdk/aws-sam Related to AWS Serverless Application Model effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3
Projects
None yet
Development

No branches or pull requests

2 participants