aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

aws cloudformation package issue in CodeBuild with latest version 2.16.210

Open sbraverman opened this issue 7 years ago • 8 comments

Problem

aws cloudformation package issue in CodeBuild with latest version 2.16.210

Error seen

[Container] 2019/08/02 21:40:44 Running command aws cloudformation package --template-file /tmp/packaged/sam.json --s3-bucket ${APP_S3_BUCKET} --output-template-file transformed.yaml 
 
Credential named assume-role-with-web-identity not found. 

Bandaid Solution

hard-code awscli to install previous version: 1.16.209

Let me know if more information is necessary. I did already open a ticket in AWS Support over this: 097198515119

sbraverman avatar Aug 02 '19 21:08 sbraverman

I created case 6315544681 before I saw this. Thank you @sbraverman !

2ps avatar Aug 03 '19 04:08 2ps

also having the same problem with aws s3 command.

WillLiu360 avatar Aug 05 '19 18:08 WillLiu360

Experiencing the same s3 issue. Locking on previous version as bandaid works.

W-Ely avatar Aug 05 '19 18:08 W-Ely

I'm also seeing this error msg from an ECR login on 1.16.211 Issue was not present in 1.16.209

trastle avatar Aug 06 '19 01:08 trastle

Does Amazon not work on Mondays? Or is their revert button broken as well?

JayCork avatar Aug 06 '19 08:08 JayCork

I'm not sure if this is the same problem that everyone else has been having, but we saw this same error yesterday with some of our python builds. It turned out that we were specifying an "old" version of botocore for those builds and it had got out of sync with aws-cli. Removing the reference to the botocore dependency so that the version of botocore installed with aws-cli was used, seems to have fixed our problem.

tabasnett avatar Aug 06 '19 13:08 tabasnett

Same problem here, we are using pip install awscli (on our Dockerfile) and it seems that this is an issue introduced with latest release.

barroca avatar Aug 06 '19 13:08 barroca

AWS support got back to me on this case, and suggested to update the botocore version to: botocore==1.12.200 This latest version of awscli has a dependency on botocode 1.12.200.

I updated to botocore==1.12.201 and sure enough the error disappeared. I think this issue can now be closed. Thank you!

sbraverman avatar Aug 06 '19 18:08 sbraverman