amazon-web-services - 如何解决 : 'Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment'

标签 amazon-web-services amazon-s3 aws-lambda aws-cli aws-cdk

我正在尝试运行 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/

相关文章:

amazon-web-services - Flink 作业无法获取 EC2 IAM 角色

amazon-web-services - go and dynamo 从表中的字段和字段不为空/字段不为空的表中获取数据

amazon-web-services - AWS CloudWatch Logs Archive(不是 S3),如何使用它

ruby-on-rails - Rails 回形针和多个文件上传

amazon-web-services - 适用于 20 个 Lambda 函数的 AWS Cloudformation 模板

node.js - Query() DynamoDB 查询 Lambda NodeJS 上数组中的每个值

amazon-web-services - 从 API 网关测试调用 lambda,但命中端点不会调用 lambda。 500 退回

ruby-on-rails - 带有自定义 header 的 S3 临时签名 url,无需将对象元数据修改到磁盘

java.lang.IllegalAccessError 从 Java 读取 AWS S3 配置时出错

java - JsonReaderException ,当从 Android 调用 AWS lambda 函数时