Closed faizzamzuri closed 1 month ago
@faizzamzuri
https://docs.bitnami.com/azure/apps/moodle/get-started/find-credentials-link-mariadb/ To identify which database server is used in your stack, run the command below:
test -d /opt/bitnami/mariadb && echo "MariaDB" || echo "MySQL"
output --> MariaDB
Setting as below
attribute | value |
---|---|
Database creation method | standard |
Engine type | mariadb |
Engine version | 10.11.8 |
templates | Free tier |
DB instance identifier | database1 |
Master username | admin |
Credentials management | self-managed |
Master password | Database1! |
DB Instance class | db.t3.micro |
storage | gp2, 20GB |
connectivity | Don’t connect to an EC2 compute resource |
Network type | ipv4 |
VPC | Default vpc |
DB Subnet group | default |
Public access | no |
VPC security group (firewall) | Create new - MariaDB_SG |
Availability Zone | No preference |
Certificate authority - optional | default |
Database authentication | Password authentication |
Estimated Monthly costs | DB instance 18.98 USD, Storage 2.76 USD, Total - 21.74 USD |
Setting up mariadb using console, and using free tier, but there are still some cost per month.
Delete if not in use. Re-create using Terraform when needed.
resource "aws_db_instance" "database1" { allocated_storage = 20 db_name = "database1" engine = "mariadb" engine_version = "10.11.8" instance_class = "db.t3.micro" username = "admin" password = "Database1!" parameter_group_name = "default.mariadb10.11" skip_final_snapshot = true copy_tags_to_snapshot = true }
Boleh terus paste dalam database.tf
di branch database
.
Create database for Moodle in Amazon RDS for MariaDB
Reference: Terraform Best Practices