Skip to content

Commit

Permalink
move back to not including bucket in s3 address for express zone
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Apr 22, 2024
1 parent 0424425 commit 16a2fea
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -386,5 +386,5 @@ override.tf.json
# Ignore CLI configuration files
.terraformrc
terraform.rc

.tfplan
# End of https://www.toptal.com/developers/gitignore/api/terraform
2 changes: 1 addition & 1 deletion common/etc/nginx/include/s3gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const INDEX_PAGE = "index.html";
* Constant defining the service requests are being signed for.
* @type {string}
*/
const SERVICE = 's3';
const SERVICE = 's3express';

/**
* Transform the headers returned from S3 such that there isn't information
Expand Down
Binary file removed deployments/s3_express/plan.tfplan
Binary file not shown.
8 changes: 4 additions & 4 deletions deployments/s3_express/settings.s3express.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
S3_BUCKET_NAME=my-bucket-name--usw2-az1--x-s3
AWS_ACCESS_KEY_ID=<access_key>
AWS_SECRET_ACCESS_KEY=<secret_access_key>
AWS_SESSION_TOKEN=<session token>
S3_SERVER=my-bucket-name--usw2-az1--x-s3.s3express-usw2-az1.us-west-2.amazonaws.com
AWS_ACCESS_KEY_ID=ZZZZZZZZZZZZZZZZZZZZ
AWS_SECRET_ACCESS_KEY=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
AWS_SESSION_TOKEN=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
S3_SERVER=s3express-usw2-az1.us-west-2.amazonaws.com
S3_SERVER_PORT=443
S3_SERVER_PROTO=https
S3_REGION=us-west-2
Expand Down
2 changes: 1 addition & 1 deletion oss/etc/nginx/templates/upstreams.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ upstream storage_urls {

# Be sure to specify the port in the S3_SERVER and be sure that port
# corresponds to the https/http in the proxy_pass directive.
server ${S3_SERVER}:${S3_SERVER_PORT};
server ${S3_BUCKET_NAME}.${S3_SERVER}:${S3_SERVER_PORT};
}
2 changes: 1 addition & 1 deletion plus/etc/nginx/templates/upstreams.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ upstream storage_urls {

# Be sure to specify the port in the S3_SERVER and be sure that port
# corresponds to the https/http in the proxy_pass directive.
server ${S3_SERVER}:${S3_SERVER_PORT} resolve;
server ${S3_BUCKET_NAME}.${S3_SERVER}:${S3_SERVER_PORT} resolve;
}

0 comments on commit 16a2fea

Please sign in to comment.