---
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
