aws-samples / aws-samples/lambda-web-scraper-example

cdk deploy fails due to stack using assets

未关闭
#3 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
137
派生
28
PR 合并指标
30 天内没有已合并 PR

描述

Following along the README I tried to deploy the template to an AWS-account after using

`cdk bootstrap aws://my_id/us_east_2`

which ended up in
```
⏳ Bootstrapping environment aws://my_id/us-east-2...
✅ Environment aws://my_id/us-east-2 bootstrapped (no changes).
```

but the `cdk deploy` ended up like this

```
❯ cdk deploy
❌ lambdaapp failed: Error: This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region")
at Object.addMetadataAssetsToManifest (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/lib/assets.ts:27:11)
at Object.deployStack (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:211:29)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at CdkToolkit.deploy (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:180:24)
at initCommandLine (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/bin/cdk.ts:208:9)
This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region")
```

Is that due to a wrong region that was chosen? The AWS Account ID I took from the `My Security Credentials` section in the AWS Management Console.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。