Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "<%= @feature_name %>DBSubnetGroup" : {
  2.   "Type" : "AWS::RDS::DBSubnetGroup",
  3.   "Properties" : {
  4.     "DBSubnetGroupDescription" : "Subnets available for the RDS DB Instance",
  5.     "SubnetIds" : {
  6.       "Ref" : "PrivateSubnets"
  7.     }
  8.   }
  9. },
  10.  
  11. "<%= @feature_name %>RDSCluster" : {
  12.   "Type" : "AWS::RDS::DBCluster",
  13.   "Properties" : {
  14.     "MasterUsername" : "paw",
  15.     "MasterUserPassword" : {
  16.       "Ref" : "DBAdminPassword"
  17.     },
  18.     "DBSubnetGroupName" : {
  19.       "Ref" : "<%= @feature_name %>DBSubnetGroup"
  20.     },
  21.     "Engine" : "aurora",
  22.     "DatabaseName" : "paw",
  23.     "VpcSecurityGroupIds" : [{ "Ref": "privateapnworkerDbSg" }],
  24.     "Port" : "3306"
  25.   }
  26. },
  27.  
  28. "<%= @feature_name %>database" : {
  29.   "Type" : "AWS::RDS::DBInstance",
  30.   "Properties" : {
  31.     "DBInstanceIdentifier":{"Fn::Join" : ["", ["je-", {"Ref" : "Tenant"}, "-<%= @feature_name%>","-", {"Ref" : "EnvironmentName"}]]},
  32.     "DBSubnetGroupName" : {
  33.       "Ref" : "<%= @feature_name %>DBSubnetGroup"
  34.     },
  35.     "Engine" : "aurora",
  36.     "DBClusterIdentifier" : {
  37.       "Ref" : "<%= @feature_name %>RDSCluster"
  38.     },
  39.     "PubliclyAccessible" : "false",
  40.     "DBInstanceClass" : {
  41.       "Ref" : "DBInstanceClass"
  42.     }
  43.   }
  44. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement