Skip to content

Commit

Permalink
Fix nginx.conf to preserve AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
Browse files Browse the repository at this point in the history
"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" is set when "00-check-for-required-env.sh" runs. In "awscredentials.js" -> "fetchCredentials", however, the "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" is not set anymore and erroneously, "_fetchEC2RoleCredentials" instead of "_fetchEcsRoleCredentials" is called.
  • Loading branch information
fmtng authored Jan 28, 2025
1 parent 33138ce commit 1f8548b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ load_module modules/ngx_http_xslt_filter_module.so;
env AWS_ACCESS_KEY_ID;
env AWS_SECRET_ACCESS_KEY;
env AWS_SESSION_TOKEN;
env AWS_CONTAINER_CREDENTIALS_RELATIVE_URI;
env S3_BUCKET_NAME;
env S3_SERVER;
env S3_SERVER_PORT;
Expand Down

0 comments on commit 1f8548b

Please sign in to comment.