forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties_password.yaml
42 lines (42 loc) · 1.02 KB
/
properties_password.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
42
---
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Bad Template for testing Password Parameters
Parameters:
MyPassword:
Type: String
Default: String
Description: String
MyNewPassword:
Type: String
Default: String
Description: String
NoEcho: False
Resources:
MyDB:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: '5'
DBInstanceClass: db.m1.small
Engine: MySQL
MasterUsername: MyName
MasterUserPassword: !Ref MyPassword
DeletionPolicy: Snapshot
MyNewDB:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: '5'
DBInstanceClass: db.m1.small
Engine: MySQL
MasterUsername: MyName
MasterUserPassword: !Ref MyNewPassword
DeletionPolicy: Snapshot
myThirdDb:
Type: AWS::RDS::DBInstance
Properties:
AllocatedStorage: '5'
DBInstanceClass: db.m1.small
Engine: MySQL
MasterUsername: MyName
MasterUserPassword: '{{resolve:ssm:IAMUserPassword:10}}'
DeletionPolicy: Snapshot