Hello,
I ran into an error when try to deploy to an ec2 instance via pipe
atlassian/aws-code-deploy:0.2.1.
On the AWS side the deployment succeeded and in the pipelines log it seems it is also good.
Because it failed is only the parsing of the return json:
{<br> "deploymentId": "d-S1C8Y31VY"<br>}<br>++ jq --raw-output .deploymentId<br>parse error: Invalid numeric literal at line 1, column 11<br>+ deployment_id=
Is it a jq error? Can you help me with this?<br><br>My variables:<br><br>
variables:
AWS_ACCESS_KEY_ID: $AWS_CODEDEPLOYUSER_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_CODEDEPLOYUSER_SECRET_KEY
AWS_DEFAULT_REGION: $AWS_DEPLOY_REGION
APPLICATION_NAME: 'backend-test'
COMMAND: 'deploy'
DEBUG: 'true'
VERSION_LABEL: 'my_app.zip'
DEPLOYMENT_GROUP: $AWS_TEST_DEPLOY_GROUP
S3_BUCKET: $AWS_CODEDEPLOY_S3_BUCKET
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
WAIT: 'false'
Thanks in advance,