mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
Demo 12 - Version and Deprecation (#57)
* Changed aws_db_instance.mariadb argument from name to db_name * Removed patch version from engine_version argument for aws_db_instance.mariadb
This commit is contained in:
+2
-2
@@ -18,10 +18,10 @@ resource "aws_db_parameter_group" "mariadb-parameters" {
|
|||||||
resource "aws_db_instance" "mariadb" {
|
resource "aws_db_instance" "mariadb" {
|
||||||
allocated_storage = 100 # 100 GB of storage, gives us more IOPS than a lower number
|
allocated_storage = 100 # 100 GB of storage, gives us more IOPS than a lower number
|
||||||
engine = "mariadb"
|
engine = "mariadb"
|
||||||
engine_version = "10.4.13"
|
engine_version = "10.4"
|
||||||
instance_class = "db.t2.small" # use micro if you want to use the free tier
|
instance_class = "db.t2.small" # use micro if you want to use the free tier
|
||||||
identifier = "mariadb"
|
identifier = "mariadb"
|
||||||
name = "mariadb"
|
db_name = "mariadb"
|
||||||
username = "root" # username
|
username = "root" # username
|
||||||
password = var.RDS_PASSWORD # password
|
password = var.RDS_PASSWORD # password
|
||||||
db_subnet_group_name = aws_db_subnet_group.mariadb-subnet.name
|
db_subnet_group_name = aws_db_subnet_group.mariadb-subnet.name
|
||||||
|
|||||||
Reference in New Issue
Block a user