Our build is configured using docker environment which uses one of a custom image that is pulled from my public docker-hub.
For deployment process, I use s3cmd which I have pre-configured inside my docker image. But that has my AWS credentials hardcoded in it.
I need to use CircleCI feature of prebuilt AWS CLI for this. How do I achieve that? Does AWS credentials get passed to docker environment also?
Current config snippet,
- image: dockerhub/image
name: Build steps
name: Deploy war to s3.
command: bash -c “s3cmd put ./artifacts/my-build.war s3://my-bucket/my-build.war”
How can I change the deploy part to include the AWS CLI for s3 upload which uses the AWS credentials I give in my Plan settings?