Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve: 'Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment'

I am trying to run CDK commands to check the diff of my local and remote stack.

I am using the following command.

cdk diff --profile saml

I am getting the following error message

Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment

I am looking for ways to resolve this issue.

like image 999
Drew Gallagher Avatar asked Nov 20 '19 21:11

Drew Gallagher


1 Answers

Removing [profile default] from ~/.aws/config solved it for me.

like image 184
milan Avatar answered Sep 19 '22 19:09

milan