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

chore: add additional regions where data API is not supported #2767

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

fuelvin1
Copy link
Contributor

Description of changes

Updated logic to read isDataAPISupported in the e2e-test-regions file for eu-north-1, sa-east-1, and all of the optIn regions.

CDK / CloudFormation Parameters Changed

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Any CDK or CloudFormation parameter changes are called out explicitly

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

{ "name": "us-east-2", "optIn": false, "cognitoSupported": true, "betaLayerDeployed": true },
{ "name": "us-west-1", "optIn": false, "cognitoSupported": true, "betaLayerDeployed": true },
{ "name": "us-west-2", "optIn": false, "cognitoSupported": true, "betaLayerDeployed": true }
{ "name": "ap-east-1", "dataAPISupported": false, "optIn": true, "cognitoSupported": false, "betaLayerDeployed": true },
Copy link
Contributor

@phani-srikar phani-srikar Aug 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phani-srikar phani-srikar marked this pull request as ready for review August 13, 2024 01:34
@phani-srikar phani-srikar requested a review from a team as a code owner August 13, 2024 01:34
@phani-srikar phani-srikar changed the title Add isDataAPISupported logic chore: add additional regions where data API is not supported Aug 13, 2024
const repoRoot = path.join(__dirname, '..', '..', '..', '..');
const supportedRegionsPath = path.join(repoRoot, 'scripts', 'e2e-test-regions.json');
const supportedRegions: TestRegion[] = JSON.parse(fs.readFileSync(supportedRegionsPath, 'utf-8'));
const specificRegion = supportedRegions.find((testRegion) => testRegion.name == region);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The 4 lines above can be extracted into a new function loadTestRegions as it has the same region file path and is also used by the isOptInRegion

@phani-srikar phani-srikar merged commit 8e116c3 into main Aug 14, 2024
6 checks passed
@phani-srikar phani-srikar deleted the data-api-support-check branch August 14, 2024 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants