-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcreate-xl-jetpack-database.yaml
67 lines (65 loc) · 1.86 KB
/
create-xl-jetpack-database.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
AWSTemplateFormatVersion: 2010-09-09
Description: This CloudFormation template will create the needed databases in the RDS for use by XL JetPack
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: Network Configuration
Parameters:
- VPCID
- DataSubnet1ID
- DataSubnet2ID
- Label:
default: Database Configuration
Parameters:
- DBHost
- DBUsername
- DBPassword
- RDSSecurityGroup
ParameterLabels:
VPCID:
default: VPC ID
PrivateSubnetID:
default: Private subnet
DBPassword:
default: Database administrator password
DBUsername:
default: Database administrator username
DBHost:
default: Database host
RDSSecurityGroup:
default: RDS Security Group
Parameters:
VPCID:
Description: The VPC Id
Type: AWS::EC2::VPC::Id
PrivateSubnetID:
Description: "The private subnet the AWS Lambda function should be deployed to (NOTE: Required internet access)"
Type: AWS::EC2::Subnet::Id
DBUsername:
Description: The Postgres DB username
Type: String
DBPassword:
Description: The Postgres DB Password
Type: String
NoEcho: True
DBHost:
Description: The Postgres DB Host/Endpoint
Type: String
RDSSecurityGroup:
Type: 'AWS::EC2::SecurityGroup::Id'
Description: The security group that grants access to the RDS
# Mappings:
# Conditions:
Resources:
RDSCreateDBLambda:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: "https://s3.amazonaws.com/xl-jetpack-aws/rds/rds-lambda.yaml"
Parameters:
PrivateSubnets: !Ref PrivateSubnetID
DBUser: !Ref DBUsername
DBPassword: !Ref DBPassword
DBHost: !Ref DBHost
AuroraRDSSecurityGroup: !Ref RDSSecurityGroup
#Outputs: