Skip to content

Commit

Permalink
fix(amplify-provider-awscloudformation): consolidate region list
Browse files Browse the repository at this point in the history
This commit uses the region list exported from aws-regions.js in
aws-utils/aws-amplify.js instead of duplicating the list.
  • Loading branch information
cjihrig-aws committed Mar 30, 2021
1 parent 92312c8 commit ce9672d
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
const aws = require('aws-sdk');
const proxyAgent = require('proxy-agent');
const configurationManager = require('../configuration-manager');

const amplifyServiceRegions = [
'us-east-1',
'us-east-2',
'us-west-2',
'eu-west-1',
'eu-west-2',
'eu-central-1',
'ap-northeast-1',
'ap-northeast-2',
'ap-south-1',
'ap-southeast-1',
'ap-southeast-2',
'ca-central-1',
];
const { regions: amplifyServiceRegions } = require('../aws-regions');

async function getConfiguredAmplifyClient(context, options = {}) {
let cred = {};
Expand Down

0 comments on commit ce9672d

Please sign in to comment.