-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Make stack.partition
concrete if region
is concrete
#4092
Comments
We can, but what's the advantage? |
For me, cleaner, smaller and easier to read stack diffs. eg, what is simpler to scan here:
or
|
Contributions are welcome |
closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates.
closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates.
closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates.
closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates.
closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates.
closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates.
) closes #4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates. The feature flag to enable this behavior is `@aws-cdk/core:enablePartitionLiterals`. ---- ### All Submissions: * [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…#21420) closes aws#4092 When a Stack's region is a string literal, we can return a string literal from Stack.partition, resulting in easier to read generated templates. The feature flag to enable this behavior is `@aws-cdk/core:enablePartitionLiterals`. ---- ### All Submissions: * [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
🚀 Feature Request
Description
If users specify
env.region
when they define aStack
, we should be able to return a concrete value forstack.partition
instead of{ "Ref": "AWS::Partition" }
Proposed Solution
Create a map from region to partition in
region-info
.Environment
The text was updated successfully, but these errors were encountered: