typescript aws
parent
47ddabac1a
commit
92c3294066
|
|
@ -23,32 +23,11 @@ Parameters:
|
||||||
TTL:
|
TTL:
|
||||||
Type: Number
|
Type: Number
|
||||||
Description: Time-to-live in minutes for the stack.
|
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:
|
Resources:
|
||||||
DeleteCFNLambda:
|
DeleteCFNLambda:
|
||||||
Type: "AWS::Lambda::Function"
|
Type: "AWS::Lambda::Function"
|
||||||
Properties:
|
Properties:
|
||||||
FunctionName: !Ref "DeleteCFNLambdaName"
|
FunctionName: "DeleteCFNLambdaName"
|
||||||
Code:
|
Code:
|
||||||
ZipFile: |
|
ZipFile: |
|
||||||
import boto3
|
import boto3
|
||||||
|
|
@ -84,7 +63,7 @@ Resources:
|
||||||
- GenerateCronExpression
|
- GenerateCronExpression
|
||||||
Type: "AWS::Events::Rule"
|
Type: "AWS::Events::Rule"
|
||||||
Properties:
|
Properties:
|
||||||
Name: !Ref "DeleteStackEventRuleName"
|
Name: "DeleteStackEventRuleName"
|
||||||
Description: Delete stack event
|
Description: Delete stack event
|
||||||
ScheduleExpression: !GetAtt GenerateCronExpression.cron_exp
|
ScheduleExpression: !GetAtt GenerateCronExpression.cron_exp
|
||||||
State: "ENABLED"
|
State: "ENABLED"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue