Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Synth: Drive application flow based on missing resources #29321

Open
1 of 2 tasks
rupe120 opened this issue Feb 29, 2024 · 1 comment
Open
1 of 2 tasks

Synth: Drive application flow based on missing resources #29321

rupe120 opened this issue Feb 29, 2024 · 1 comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3 package/tools Related to AWS CDK Tools or CLI

Comments

@rupe120
Copy link

rupe120 commented Feb 29, 2024

Describe the feature

Be able to manage (try/catch ?) missing resources from lookups, to be able to skip sections on a first pass if they don't exist yet.

Use Case

At the moment the way that I handle missing resources is to have configuration options, and fill in the values after the resources have been created. The creation of dependent resources is then based on the existence of a value in the configuration.

This is done to avoid Import/Export parameters that create a hard dependency between stacks. When there is a complex set of stacks and a structural change is needed, it is often the case that the dependent stack need to be manually deleted if an export parameter would be deleted in the new structure.

Proposed Solution

Optionally throw an exception on lookup failures. Alternatively a null object could be returned from the lookup.

I would see this a configurable option that could be turned on if desired.

Other Information

I am open to helping to make this happen. I would just need a little support in getting started. I have previously stood up the repository in a dev container, but the processes and structure is a lot to digest.

Acknowledgements

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

CDK version used

2.130.0 (build bd6e5ee)

Environment details (OS name and version, etc.)

Windows 11 22H2 22621.3007

@rupe120 rupe120 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 29, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Feb 29, 2024
@pahud pahud added p2 and removed needs-triage This issue or PR still needs to be triaged. labels Mar 1, 2024
@pahud
Copy link
Contributor

pahud commented Mar 1, 2024

Sounds like a good idea. Would love to see more sample snippets about the implementation.

@pahud pahud added the effort/medium Medium work item – several days of effort label Mar 1, 2024
@pahud pahud added p3 and removed p2 labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants