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

Update RDS server versions, postgres version and moodle version #36

Merged
merged 1 commit into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions templates/03-rds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ Parameters:
Type: String
DatabaseInstanceType:
AllowedValues:
- db.r4.large
- db.r4.xlarge
- db.r4.2xlarge
- db.r4.4xlarge
- db.r4.8xlarge
- db.r4.16xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.8xlarge
- db.r5.16xlarge
ConstraintDescription: Must be a valid RDS instance class.
Default: db.r4.large
Default: db.r5.large
Description: The Amazon RDS database instance class.
Type: String
# DatabaseMasterUsername:
Expand Down Expand Up @@ -151,7 +151,7 @@ Resources:
DatabaseName: !Ref DatabaseName
DBSubnetGroupName: !Ref DataSubnetGroup
Engine: aurora-postgresql
DBClusterParameterGroupName: default.aurora-postgresql12
DBClusterParameterGroupName: default.aurora-postgresql13
KmsKeyId:
!If [ UseAWS-ManagedCMK, !Ref 'AWS::NoValue', !Ref DatabaseCmk ]
MasterUsername: !Join ['', ['{{resolve:secretsmanager:', !Ref MyRDSInstanceSecretArn, ':SecretString:username}}' ]]
Expand Down
2 changes: 1 addition & 1 deletion templates/04-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ Resources:
/tmp/install_moodle.sh:
content: !Sub |
#!/bin/bash -xe
wget -O /tmp/moodle.tgz https://download.moodle.org/download.php/direct/stable38/moodle-3.8.3.tgz
wget -O /tmp/moodle.tgz https://download.moodle.org/download.php/direct/stable400/moodle-4.0.2.tgz
tar -xvzf /tmp/moodle.tgz --strip-components=1 -C /var/www/moodle/html/
wget -O /var/www/moodle/html/lib/aws.phar https://docs.aws.amazon.com/aws-sdk-php/v3/download/aws.phar
cp /tmp/config.php /var/www/moodle/html/config.php
Expand Down