docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
958 stars 254 forks source link

docker compose create ecs from a OIDC pipeline with aws_web_identity_token_file #2196

Closed peebles closed 1 year ago

peebles commented 2 years ago

Description

I an trying to deploy a compose app to AWS within a bitbucket pipeline using oidc for credentials ... AWS_WEB_IDENTITY_TOKEN_FILE is set to a file which contains the value of $BITBUCKET_STEP_OIDC_TOKEN.

I can do normal aws-cli operations, but I cannot do docker compose in my ecs context.

Steps to reproduce the issue:

echo $BITBUCKET_STEP_OIDC_TOKEN > $(pwd)/web-identity-token
export AWS_WEB_IDENTITY_TOKEN_FILE=$(pwd)/web-identity-token
docker context create ecs deploy --from-env
docker context use deploy
docker --context deploy compose ps

Describe the results you received:

context requires credentials to be passed as environment variables

Describe the results you expected:

I would have hoped to see my application running (it is running).

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed because it had not recent activity during the stale period.