So i'm having this error when trying to deploy to ec2 instance from S3 with bitbucket pipeline :
<span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commuask.PNG" style="width: 999px;"><img src="https://us.v-cdn.net/6038660/uploads/images/202805i0F1D44F0A4897D35/commuask.PNG" role="button" title="commuask.PNG" alt="commuask.PNG"></span></span>
and how pipeline looks like:
- step:
name: 'Deployment to S3 Bucket'
deployment: S3Bucket
trigger: 'automatic'
script:
- echo "Your deployment to S3 Bucket script goes here..."
- pipe: atlassian/aws-s3-deploy:1.1.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
S3_BUCKET: 'webserver-for-weaplan-2/weaplanservicesV1'
LOCAL_PATH: '$(pwd)'
##---------------DEPLOYMENT-OF-DATAHANDLERAPI-TO-WEAPLAN-EC2-INSTANCE-------------##
- step:
name: Deploy DataHandlerAPI to EC2 instance
deployment: DH_EC2
trigger: 'automatic'
script:
- pipe: atlassian/aws-code-deploy:1.1.1
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
APPLICATION_NAME: 'DataHandlerAPI'
COMMAND: 'deploy'
S3_BUCKET: 'webserver-for-weaplan-2/weaplanservicesV1'
DEPLOYMENT_GROUP: 'DataHandlerAPI-dg'