Added AWS-AU region support in config command#1959
Merged
harshithad0703 merged 21 commits intodevelopmentfrom Jul 3, 2025
Merged
Added AWS-AU region support in config command#1959harshithad0703 merged 21 commits intodevelopmentfrom
harshithad0703 merged 21 commits intodevelopmentfrom
Conversation
cs-raj
previously approved these changes
Jun 12, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
aman19K
previously approved these changes
Jun 12, 2025
shafeeqd959
reviewed
Jun 12, 2025
Added AWS AU support in other CLI commands
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR extends the CLI’s region support by adding the new AWS-AU region everywhere it’s used: configuration commands, helper utilities, integration tests, and documentation.
- Added AWS-AU (and related GCP-EU/GCP-NA) entries to region handler, interactive prompts, config mappings, and personalize endpoints.
- Refactored integration tests to import a centralized
REGION_MAPand initialize new regions. - Bumped package versions, updated README usage examples, and cleaned up test stubs.
Reviewed Changes
Copilot reviewed 68 out of 72 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/contentstack-config/src/utils/region-handler.ts | Added AU and AWS-AU in region definitions |
| packages/contentstack-config/src/utils/interactive.ts | Updated region choices for prompts |
| packages/contentstack-config/messages/index.json | Default region message updated to AWS-NA |
| packages/contentstack-utilities/messages/config.json | Default region message updated to AWS-NA |
| packages/contentstack-utilities/src/helpers.ts | Normalized path sanitization formatting |
| packages/contentstack-config/test/unit/commands/region.test.ts | Expanded unit tests for AWS-* regions and removed old stubs |
| packages/contentstack-import/src/config/index.ts | Extended personalize baseURL mapping for new regions |
| packages/contentstack-import/test/integration/config.json | Included AWS-AU in test configurations |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
packages/contentstack-config/src/utils/interactive.ts:9
- The code still accepts plain 'AU' in the region handler but the interactive choices no longer include {name: 'AU', value: 'AU'}. For consistency, either add the plain 'AU' choice here or remove support for 'AU' in the handler.
{ name: 'AWS-NA', value: 'AWS-NA' },
shafeeqd959
reviewed
Jun 26, 2025
aman19K
approved these changes
Jul 3, 2025
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.
No description provided.