typescript aws

pull/235/head
mdugdale 2021-03-27 23:52:46 +00:00
parent 47ddabac1a
commit 92c3294066
1 changed files with 2 additions and 23 deletions

View File

@ -23,32 +23,11 @@ Parameters:
TTL:
Type: Number
Description: Time-to-live in minutes for the stack.
DeleteLambdaExRoleName:
Type: Number
Description: Time-to-live in minutes for the stack.
DeleteCFNLambdaName:
Type: Number
Description: Time-to-live in minutes for the stack.
DeleteStackEventRuleName:
Type: Number
Description: Time-to-live in minutes for the stack.
DeleteCFNLambdaPermissionName:
Type: Number
Description: Time-to-live in minutes for the stack.
LambdaExecutionRoleName:
Type: Number
Description: Time-to-live in minutes for the stack.
GenerateCronExpressionLambdaName:
Type: Number
Description: Time-to-live in minutes for the stack.
GenerateCronExpressionName:
Type: Number
Description: Time-to-live in minutes for the stack.
Resources:
DeleteCFNLambda:
Type: "AWS::Lambda::Function"
Properties:
FunctionName: !Ref "DeleteCFNLambdaName"
FunctionName: "DeleteCFNLambdaName"
Code:
ZipFile: |
import boto3
@ -84,7 +63,7 @@ Resources:
- GenerateCronExpression
Type: "AWS::Events::Rule"
Properties:
Name: !Ref "DeleteStackEventRuleName"
Name: "DeleteStackEventRuleName"
Description: Delete stack event
ScheduleExpression: !GetAtt GenerateCronExpression.cron_exp
State: "ENABLED"