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

CDK: Region validation #32445

Open
2 tasks
pgarbe opened this issue Dec 9, 2024 · 3 comments
Open
2 tasks

CDK: Region validation #32445

pgarbe opened this issue Dec 9, 2024 · 3 comments
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 package/tools Related to AWS CDK Tools or CLI

Comments

@pgarbe
Copy link
Contributor

pgarbe commented Dec 9, 2024

Describe the feature

If a region is set for a Stack, CDK should validate if the synthesized constructs match the actual supported resources of that region. As each region supports different services (or even different features) a shift-left of the validation helps developer to get early feedback if their solution will be deployable on that region.

Use Case

Whenever a new Region launches I want to verify if my code is deployable to that region. An actual deployment is not helpful as it could have side effects and fails usually on the first missing service. It does not give me an overview of which services I have in my stack that are not or only partial supported. Failing during cd synth helps to get an early feedback and to check that regularly (as available services and their features of a region changes over time).

Another use-case is related to the launch of the European Sovereign Cloud in 2025. As preparation it is useful to be able to build solutions that will be compatible with the initial supported services.

Proposed Solution

Use the same sources as the Region Comparison Tool

Other Information

No response

Acknowledgements

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

CDK version used

v2 (latest)

Environment details (OS name and version, etc.)

OSX 14.5

@pgarbe pgarbe added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 9, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Dec 9, 2024
@pahud
Copy link
Contributor

pahud commented Dec 9, 2024

I love this idea. Will bring this up to core team for their inputs.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Dec 9, 2024
@otaviomacedo
Copy link
Contributor

Yes, I think it's a good idea, too. We can pick this up in the future as part of a bigger shift left story, that includes improvements to the policy validation feature.

@pgarbe
Copy link
Contributor Author

pgarbe commented Dec 12, 2024

I'm not sure if it's just another validation rather than a hard compiler failure (especially when the region has been set). It will just not deploy in such a case and it's not a choice.

For validation, I see scenarios like HIPAA compliance which is more a self-imposed restriction.

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. p2 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

3 participants