sha*_*nuo 1 aws-cloudformation aws-lambda
我有一个可以通过 S3 存储桶部署的 python 函数。但是可以“内联”部署一个函数......
但我没有看到有关如何执行此操作的任何明确说明。我不想使用 S3 存储桶。
您可以通过以下 YAML 语法在 CloudFormation 模板内内联部署 AWS Lambda 函数。
LambdaFunction:
Type: AWS::Lambda::Function
Properties:
Code:
ZipFile: >
def handler(event, context):
print('hello from lambda')
Handler: index.handler
Role:
Fn::GetAtt: [ LambdaRole , "Arn" ]
Runtime: python3.6
Timeout: 60
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2828 次 |
| 最近记录: |