Added AWS AU support in other CLI commands#1966
Merged
netrajpatel merged 7 commits intofeat/dx-3117from Jun 24, 2025
Merged
Conversation
Contributor
netrajpatel
commented
Jun 12, 2025
- Added AWS AU support in other internal CLI plugins
- Updated test cases
- Replaced NA and EU with AWS-NA and AWS-EU in all internal CLI plugins
aman19K
approved these changes
Jun 12, 2025
shafeeqd959
approved these changes
Jun 13, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces support for AWS-AU (and other new regions) across internal CLI plugins by replacing generic region codes (NA, EU) with provider-specific codes (AWS-NA, AWS-EU) and adding AWS-AU, GCP regions, then updating tests and bumping dependent package versions.
- Replaced region defaults and mappings from “NA”/“EU” to “AWS-NA”/“AWS-EU” and added AWS-AU, GCP-NA, GCP-EU in config and helper files
- Updated integration and unit tests to import
REGION_MAPand reference provider-specific region codes - Bumped versions for related packages and updated CLI README snippets
Reviewed Changes
Copilot reviewed 51 out of 53 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/contentstack-config/src/utils/region-handler.ts | Default region and JSDoc updated for AWS-NA/EU |
| packages/contentstack-import/src/config/index.ts | personalize.baseURL key changed to AWS-NA |
| packages/contentstack-export/src/config/index.ts | personalize.baseURL key changed to AWS-NA |
| packages/contentstack-import/test/config.json | Expanded REGIONS list and added REGION_MAP |
| packages/contentstack-export/test/config.json | Expanded REGIONS list |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (2)
packages/contentstack-config/src/utils/region-handler.ts:116
- [nitpick] The JSDoc lists valid regions as AWS-NA and AWS-EU but omits AWS-AU. Update the comment to reflect all supported regions.
* @param {string} region It Can be AWS-NA, AWS-EU
packages/contentstack-import/test/config.json:29
- While the
REGIONSlist includes AWS-AU, there are no tests that explicitly set or validate AWS-AU behavior. Consider adding integration tests for the AWS-AU path to ensure it works as intended.
"REGIONS": ["AWS-NA", "AWS-EU", "AWS-AU", "AZURE-NA", "AZURE-EU", "GCP-NA", "GCP-EU"],
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.