forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources_deletionpolicy.yaml
More file actions
48 lines (48 loc) · 1.08 KB
/
resources_deletionpolicy.yaml
File metadata and controls
48 lines (48 loc) · 1.08 KB
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
42
43
44
45
46
47
48
---
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Bad Template for testing DeletionPolicies
Parameters:
DBPolicy:
Type: String
Default: 'Retain'
Resources:
PolicyList:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: '5'
DBInstanceClass: db.m1.small
Engine: MySQL
DeletionPolicy: [Snapshot, Retain]
MadeUpPolicy:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: '5'
DBInstanceClass: db.m1.small
Engine: MySQL
DeletionPolicy: CopyRegion
MyIAMUser:
Type: AWS::IAM::User
Properties:
# Username field not supported for secure strings
UserName: 'bob'
DeletionPolicy: Snapshot
UnsupportedIntrinsic:
Type: AWS::CloudFormation::WaitConditionHandle
DeletionPolicy:
Fn::Cidr:
- "192.168.0.0/24"
- 6
- 5
InvalidMapping:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: '5'
DBInstanceClass: db.m1.small
Engine: MySQL
DeletionPolicy:
A: a1
B:
- b1
- b2
UpdateReplacePolicy: "Retain"