Skip to content

Commit

Permalink
Add data/rds-legacy-postgres.yaml
Browse files Browse the repository at this point in the history
* Add legacy RDS PostgreSQL template to export existing RDS setting
values without creating a new RDS DB instance
  • Loading branch information
jbouse committed Aug 27, 2018
1 parent e00d537 commit f5eb725
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions data/rds-legacy-postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
AWSTemplateFormatVersion: '2010-09-09'

Description: 'Data: ElastiCache Redis Cluster'

Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: 'RDS Parameters'
Parameters:
- Endpoint
- DBName
- MasterUsername
- MasterUserPassword
- Port
- SecurityGroup

Parameters:
Endpoint:
Description: The connection endpoint for the database.
Type: String

DBName:
Description: The database schema name.
Type: String

MasterUsername:
Description: The master username for connecting to the database.
Type: String

MasterUserPassword:
Description: The master user password for authenticating to the database.
NoEcho: True
Type: String

Port:
Description: The port number on which the database accepts connections.
Type: Number
Default: 5432

SecurityGroup:
Description: Security Group for the database.
Type: AWS::EC2::SecurityGroup::Id

Resources:
Dummy:
Type: AWS::S3::Bucket
Properties: {}

Outputs:
StackName:
Description: 'Stack name'
Value: !Ref 'AWS::StackName'

EndPoint:
Value: !Ref Endpoint
Description: The connection endpoint for the database.
Export:
Name: !Sub "${AWS::StackName}-EndPoint"

Name:
Value: !Ref DBName
Description: The database schema name.
Export:
Name: !Sub "${AWS::StackName}-Name"

UserName:
Value: !Ref MasterUsername
Description: The master username for connecting to the database.
Export:
Name: !Sub "${AWS::StackName}-UserName"

Password:
Value: !Ref MasterUserPassword
Description: The master user password for authenticating to the database.
Export:
Name: !Sub "${AWS::StackName}-Password"

Port:
Value: !Ref Port
Description: The port number on which the database accepts connections.
Export:
Name: !Sub "${AWS::StackName}-Port"

SecurityGroup:
Value: !Ref SecurityGroup
Description: Security Group for the database.
Export:
Name: !Sub "${AWS::StackName}-SecurityGroup"

0 comments on commit f5eb725

Please sign in to comment.