feat: add dynamic partition #120
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces two main updates to the project:
CDK Version Update and Deprecated Method Replacement:
2.164.1
to stay current and access new features and improvements.Dynamic Partition Key for GovCloud Support:
aws
,aws-us-gov
, etc.), making the code compatible with both commercial and GovCloud regions.Aws.PARTITION
in ARN definitions to automatically adjust the partition prefix based on the environment, ensuring accurate ARN generation for S3, WorkMail, and other AWS services.Changes
Aws.PARTITION
where required.var
toconst
to enhance readability and prevent variable mutation.Impact
Testing
This PR addresses multi-region compatibility concerns and enhances the project's adaptability with the latest AWS CDK standards.