We use the aws-s3-deploy pipe with the following configuration to upload files from the repository to s3.
- pipe: atlassian/aws-s3-deploy:0.2.1
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_STAGE
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_STAGE
AWS_DEFAULT_REGION: eu-central-1
S3_BUCKET: my-bucket
LOCAL_PATH: resources
DELETE_FLAG: 'true'
Even though no of the files in `resources` has changed, the entire folder is uploaded on each deployment.
The files in the given local path are commited in the repository and should also not be affected by any other steps in the deployment.