Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Created September 22, 2022 06:06
Show Gist options
  • Select an option

  • Save nidhi-canopas/7bc11ab586639cd7fa3adcd1a09a02d0 to your computer and use it in GitHub Desktop.

Select an option

Save nidhi-canopas/7bc11ab586639cd7fa3adcd1a09a02d0 to your computer and use it in GitHub Desktop.
Resources:
LambdaFunction:
Type: AWS::Lambda::Function
Properties:
FunctionName:
Fn::Sub: "test-lambda"
Description: Demo LambdaFunction for learning using cloudformation
Runtime: "go1.x"
Code:
S3Bucket: your_s3_bucket_name
S3Key: !Ref your_lambda_handler_name
Handler: main
MemorySize: 128
Timeout: 10
Role: !GetAtt LambdaExecutionRole.Arn
Environment:
Variables:
ACCESS_KEY_ID:
Fn::Sub: your_aws_secret_key_id
SECRET_ACCESS_KEY:
Fn::Sub: your_aws_secret_access_key
REGION_AWS:
Fn::Sub: your_aws_region
GIN_MODE: release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment