-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
41 lines (38 loc) · 1.09 KB
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
delete-cfn-stack-template
Globals:
Function:
Timeout: 60
Resources:
DeleteTestEnvFunction:
Type: AWS::Serverless::Function
Properties:
Description: CloudFormationにより作成されたスタックを検出して削除します
CodeUri: delete-test-env/
Handler: app.lambdaHandler
Runtime: nodejs14.x
Architectures:
- x86_64
Policies:
- AdministratorAccess
Events:
Schedule1:
Type: Schedule
Properties:
Description: スケジュール1
Schedule: "cron(0 14 * * ? *)"
Schedule2:
Type: Schedule
Properties:
Description: スケジュール2
Schedule: "cron(30 14 * * ? *)"
Environment:
Variables:
regExp: "test-env-[0-9]+.-stack"
LogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub /aws/lambda/${DeleteTestEnvFunction}
RetentionInDays: 14