Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-cdk cli] The cli doesn't recognise the AWS credentials from 1.60 version #10118

Closed
enricopesce opened this issue Sep 2, 2020 · 1 comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@enricopesce
Copy link

Reproduction Steps

enrico.pesce@MacBook-216 infrastructure % cat ~/.aws/credentials 
[enrico]
aws_access_key_id     = hidden
aws_secret_access_key = hidden
aws_session_token     = hidden
account               = enrico
role                  = arn:aws:sts::642567306647:assumed-role/it-devops/Enrico.Pesce
expiration            = 2020-09-02 21:43:25 +0000 UTC

[enrico@admin]
role_arn       = arn:aws:iam::642567306647:role/super@admin
source_profile = enrico

export AWS_PROFILE="enrico@admin"

enrico.pesce@MacBook-216 infrastructure % aws sts get-caller-identity  
{
    "UserId": "AROAJCJ7OQJ3A2WGT4VF2:botocore-session-1599039815",
    "Account": "642567306647",
    "Arn": "arn:aws:sts::642567306647:assumed-role/super@admin/botocore-session-1599039815"
}

enrico.pesce@MacBook-216 infrastructure % npm install -g aws-cdk@1.59.0
/usr/local/bin/cdk -> /usr/local/lib/node_modules/aws-cdk/bin/cdk
+ aws-cdk@1.59.0
updated 9 packages in 2.774s


enrico.pesce@MacBook-216 infrastructure % cdk deploy "*"               
{ account: '642567306647', region: 'eu-west-1' }


enrico.pesce@MacBook-216 infrastructure % npm install -g aws-cdk@1.60.0
/usr/local/bin/cdk -> /usr/local/lib/node_modules/aws-cdk/bin/cdk
+ aws-cdk@1.60.0
updated 9 packages in 2.902s
enrico.pesce@MacBook-216 infrastructure % cdk deploy "*"               
{ account: undefined, region: 'eu-west-1' }
Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment

What actually happened?

From CDK 1.60 my credential doesn't work

Environment

  • CLI Version : 1.60
  • Node.js Version: v14.9.0
  • OS : MacOs 10.15.6
  • Language (Version): TypeScript (3.9.7)

This is 🐛 Bug Report

@enricopesce enricopesce added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 2, 2020
@rix0rrr
Copy link
Contributor

rix0rrr commented Sep 2, 2020

I think you might be running into this: #10032

@rix0rrr rix0rrr closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants