aws:aws-cloudformation-lambda
Differences
This shows you the differences between two versions of the page.
| aws:aws-cloudformation-lambda [23/12/2024 11:08] – created andrew | aws:aws-cloudformation-lambda [30/05/2025 09:38] (current) – removed andrew | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== lambda yaml cloudformation ====== | ||
| - | |||
| - | |||
| - | <code yaml> | ||
| - | AWSTemplateFormatVersion: | ||
| - | Parameters: | ||
| - | var1: | ||
| - | Type: CommaDelimitedList | ||
| - | Description: | ||
| - | Resources: | ||
| - | LambdaRole: | ||
| - | Type: ' | ||
| - | Properties: | ||
| - | AssumeRolePolicyDocument: | ||
| - | Version: 2012-10-17 | ||
| - | Statement: | ||
| - | - Effect: Allow | ||
| - | Principal: | ||
| - | Service: | ||
| - | - lambda.amazonaws.com | ||
| - | Action: | ||
| - | - ' | ||
| - | LambdaPolicy: | ||
| - | Type: ' | ||
| - | Properties: | ||
| - | PolicyName: LambdaPolicy | ||
| - | PolicyDocument: | ||
| - | Version: 2012-10-17 | ||
| - | Statement: | ||
| - | - Effect: Allow | ||
| - | Action: | ||
| - | - ' | ||
| - | - ' | ||
| - | - ' | ||
| - | Resource: ' | ||
| - | Roles: | ||
| - | - !Ref LambdaRole | ||
| - | - | ||
| - | Lambda1: | ||
| - | Type: ' | ||
| - | DeletionPolicy: | ||
| - | Properties: | ||
| - | Code: | ||
| - | ZipFile: !Sub | | ||
| - | import cfnresponse | ||
| - | import json | ||
| - | import boto3 | ||
| - | def lambda_handler(event, | ||
| - | print(' | ||
| - | return | ||
| - | | ||
| - | FunctionName: | ||
| - | Tags: | ||
| - | - Key: " | ||
| - | Value: " | ||
| - | - Key: " | ||
| - | Value: " | ||
| - | |||
| - | Handler: index.lambda_handler | ||
| - | Role: !GetAtt | ||
| - | - LambdaRole | ||
| - | - Arn | ||
| - | Runtime: python3.10 | ||
| - | Timeout: 10 | ||
| - | |||
| - | |||
| - | </ | ||
aws/aws-cloudformation-lambda.1734952120.txt.gz · Last modified: by andrew
