-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.yaml
34 lines (34 loc) · 1.01 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
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
eradicateVPC:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-eradicateVPC
Description: !Sub
- Stack ${StackTagName} Environment ${EnvironmentTagName} Function ${ResourceName}
- ResourceName: eradicateVPC
CodeUri: src/eradicateVPC
Handler: index.handler
Runtime: nodejs12.x
MemorySize: 3008
Timeout: 900
Tracing: Active
Policies:
- AWSXrayWriteOnlyAccess
- AWSConfigRole
- AmazonVPCFullAccess
Events:
Timer:
Type: Schedule
Properties:
Schedule: cron(15 16 * * ? *)
Metadata:
StackeryName: TriggerDailyEradication
Parameters:
StackTagName:
Type: String
Description: Stack Name (injected by Stackery at deployment time)
EnvironmentTagName:
Type: String
Description: Environment Name (injected by Stackery at deployment time)