如何知道从aws sam模板创建aws资源时返回哪些属性



例如

AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
sam stack
Resources:
MyLambdaFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: lambda_functions/my_lambda_function_code/
Handler: index.handler
Timeout: 15
Runtime: nodejs14.x
Outputs:
MyLambdaFunctionArn:
Description: "Arn of MyLambdaFunction "
Value: !GetAtt MyLambdaFunction.Arn  

在上面的模板中,当MyLambdaFunction创建时,我知道它有一个名为Arn的属性,我可以像使用MyLambdaFunction.Arn一样使用它。我想知道创建资源后还返回多少属性

您可以检查CloudFormation文档中的每个资源的返回部分。

在这种情况下,Serverless::Function只有ARN作为返回值。

相关内容

最新更新