EDIT: Trying to get code block working
I have a step - with the following command
- run:
command: |
$(docker run --rm -it \
-e AWS_ACCESS_KEY_ID=xxx \
-e AWS_SECRET_ACCESS_KEY="xxx" \
-e AWS_DEFAULT_REGION=us-west-2 \
cgswong/aws:aws ecr get-login)
Essentially, it’s a docker image that gives you access to the AWS cli without installing anything.
It works - I get the expected docker login command back - but it is prepended with ^@^@
- and as such my above step command fails with ‘command not found’
I’ve tried a couple of different images that use the same concept - i.e. returning a command for execution, and they all have the same characters.
This is not present when i run the same command locally.