是否可以使用导出堆栈的logicalId。我已经创建了一个APIGateway资源并导出了它。是logicalId是rApiGatewayVehRestApi。当我尝试获取RootResourceId of rApiGatewayVehRestApi时,在无服务器部署期间会出现以下错误:
The CloudFormation template is invalid: Template error: instance of Fn::GetAtt references undefined resource rApiGatewayVehRestApi
下面是无服务器配置的片段:
provider:
我不能删除云形成中的堆栈,因为在某些情况下,我通过使用CDK在输出和自身之间创建了一个循环引用。
每次尝试删除输出或删除我得到的Export the-role cannot be deleted as it is in use by the-stack堆栈
"Outputs": {
"TheRole": {
"Description": "Role ARN",
"Value": {
"Fn::ImportValu
我已经创建了一个嵌套的cloudformation堆栈,在本例中引用了Lambda子堆栈。因为我有多个LambdaFunctions,所以我在Lambda子模板中设计了LambdaFunction资源,这样它就可以在父模板中指定的所有Lambda函数之间重复相同的操作。
但是,当我执行create-stack:Template error: every Fn::GetAtt object requires two non-empty parameters, the resource name and the resource attribute时,我会得到以下错误:Template error
我正在尝试从在DynamoDb中创建的堆栈导出一个StreamArn,然后在serverless.yml中引用使用!ImportValue的导出。
但我收到了一条错误信息:
unknown tag !<!ImportValue> in "/codebuild/output/src/serverless.yml"
cloudformation和serverless.yml定义如下。任何帮助都很感激。
StackA.yml
AWSTemplateFormatVersion: 2010-09-09
Description: Resources for the regist