Skip to content

Commit 1f8548b

Browse files
authored
Fix nginx.conf to preserve AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
"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.
1 parent 33138ce commit 1f8548b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/etc/nginx/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ load_module modules/ngx_http_xslt_filter_module.so;
1212
env AWS_ACCESS_KEY_ID;
1313
env AWS_SECRET_ACCESS_KEY;
1414
env AWS_SESSION_TOKEN;
15+
env AWS_CONTAINER_CREDENTIALS_RELATIVE_URI;
1516
env S3_BUCKET_NAME;
1617
env S3_SERVER;
1718
env S3_SERVER_PORT;

0 commit comments

Comments
 (0)