Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

aws-cloudformation stack does not work s3deploy works with same credentials

Yadvendra_Singh November 5, 2019

following pipe fails

script: - pipe: atlassian/aws-cloudformation-deploy:0.6.2 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION STACK_NAME: 'test-bgs-stack' TEMPLATE: 'stack_template.json' DEBUG: 'true'

with error 

"An error occurred (IncompleteSignature) when calling the ValidateTemplate operation: 'AKIAXZ4H3HK2SO5MAVNR' not a valid key=value pair (missing equal-sign) in Authorization header: 'AWS4-HMAC-SHA256 Credential= AKIAXZ4H3HK2SO5MAVNR /20191105/eu-west-1/cloudformation/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=3890668e239dd99d14bf86db65b25f27edc8e0c1acb5d0ea80f4d2030cfc714f'."

but below pipe works

- pipe: atlassian/aws-s3-deploy:0.3.5 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: $S3_BUCKET_NEWCF LOCAL_PATH: "dist/newApp/" ACL: 'public-read-write' DELETE_FLAG: 'true'

template used

"myS3Bucket" : {
"Type" : "AWS::S3::Bucket"
}

 

1 answer

0 votes
Yadvendra_Singh November 5, 2019

--

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events