我正在尝试运行 CDK 命令来检查本地和远程堆栈的差异。
我正在使用以下命令。
cdk diff --profile saml
我收到以下错误消息
Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment
我正在寻找解决此问题的方法。
最佳答案
删除 [profile default]
来自 ~/.aws/config
为我解决了。
关于amazon-web-services - 如何解决 : 'Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58963515/