Closed fenak closed 1 year ago
The new images including these changes are now available under image tag: 1.5.2-alpine3.18.2-aws-env
Thanks heaps @elrido, I was able to test the new image and it works. It is possible to deploy the new PrivateBin release in AWS using an IAM role now with the patched image. 🙌
Might fix #154
As briefly discussed on https://github.com/PrivateBin/docker-nginx-fpm-alpine/pull/142, there could be some missing env vars that need to be available for the SDK to interact with AWS. This PR adds more of them.
This probably doesn't cover every single use case, but should be a good step on the right direction.
For reference:
Aws\Credentials\CredentialProvider
: https://github.com/aws/aws-sdk-php/blob/d46961b82e857f77059c0c78160719ecb26f6cc6/src/Credentials/CredentialProvider.php#L46-L53AWS_ROLE_ARN
AWS_ACCESS_KEY_ID
AWS_PROFILE
AWS_ROLE_SESSION_NAME
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_WEB_IDENTITY_TOKEN_FILE
AWS_SHARED_CREDENTIALS_FILE
AWS_CONTAINER_AUTHORIZATION_TOKEN
AWS_CONTAINER_CREDENTIALS_FULL_URI
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
AWS_STS_REGIONAL_ENDPOINTS
AWS_DEFAULT_REGION
AWS_REGION
AWS_ROLE_ARN
AWS_WEB_IDENTITY_TOKEN_FILE