Skip to content

Commit

Permalink
Add region to AWS config
Browse files Browse the repository at this point in the history
  • Loading branch information
levinmr committed Feb 28, 2024
1 parent e716d8d commit d2cf50c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config.js.cloudgov
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
endpoint: VCAP_SERVICES_JSON["s3"][0]["credentials"]["endpoint"],
accessKeyId: VCAP_SERVICES_JSON["s3"][0]["credentials"]["access_key_id"],
secretAccessKey: VCAP_SERVICES_JSON["s3"][0]["credentials"]["secret_access_key"],
region: VCAP_SERVICES_JSON["s3"][0]["credentials"]["region"],
s3ForcePathStyle: process.env.AWS_S3_FORCE_STYLE_PATH,
signatureVersion: process.env.AWS_SIGNATURE_VERSION
},
Expand Down
1 change: 1 addition & 0 deletions src/publish/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const s3config = {
accessKeyId: config.aws.accessKeyId,
secretAccessKey: config.aws.secretAccessKey,
endpoint: `https://${config.aws.endpoint}`,
region: config.aws.region,
s3ForcePathStyle: config.aws.s3ForcePathStyle,
signatureVersion: config.aws.signatureVersion,
};
Expand Down

0 comments on commit d2cf50c

Please sign in to comment.