Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying code to use custom Parameter groups for RDS #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion 02-rc-elasticbeanstalk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,17 @@ Resources:
Port: 3306
DBSubnetGroupName:
Ref: RDSDBSubnets
DBClusterParameterGroupName:
Ref: RDSDBClusterParameterGroup
VpcSecurityGroupIds:
- !Ref SGData
RDSDBInstance1:
Type: AWS::RDS::DBInstance
Properties:
DBSubnetGroupName:
Ref: RDSDBSubnets
DBParameterGroupName:
Ref: RDSDBParameterGroup
Engine: aurora-mysql
DBClusterIdentifier:
Ref: RDSCluster
Expand All @@ -586,11 +590,27 @@ Resources:
Properties:
DBSubnetGroupName:
Ref: RDSDBSubnets
DBParameterGroupName:
Ref: RDSDBParameterGroup
Engine: aurora-mysql
DBClusterIdentifier:
Ref: RDSCluster
PubliclyAccessible: 'false'
DBInstanceClass: !Ref DatabaseInstanceType
RDSDBClusterParameterGroup:
Type: AWS::RDS::DBClusterParameterGroup
Properties:
Description: CloudFormation Sample Aurora Cluster Parameter Group
Family: aurora-mysql5.7
Parameters:
time_zone: US/Eastern
RDSDBParameterGroup:
Type: AWS::RDS::DBParameterGroup
Properties:
Description: CloudFormation Sample Aurora Parameter Group
Family: aurora-mysql5.7
Parameters:
sql_mode: IGNORE_SPACE
RDSDBSubnets:
Type: AWS::RDS::DBSubnetGroup
Properties:
Expand All @@ -602,6 +622,7 @@ Resources:




# This is a temporary EC2 server used to add the necessary Elastic Beanstalk scripts to the Project REDCap source code zip file.
TempEC2Instance:
Type: AWS::EC2::Instance
Expand Down Expand Up @@ -915,4 +936,4 @@ Resources:

Outputs:
PublicAlbDnsName:
Value: !If [ DeployACM, !GetAtt 'REDCapEnvironmentACM.EndpointURL', !GetAtt 'REDCapEnvironmentNoACM.EndpointURL' ]
Value: !If [ DeployACM, !GetAtt 'REDCapEnvironmentACM.EndpointURL', !GetAtt 'REDCapEnvironmentNoACM.EndpointURL' ]