wardviaene / terraform-course

Course files for my Udemy course about Terraform
https://www.udemy.com/learn-devops-infrastructure-automation-with-terraform/?couponCode=TERRAFORM_GIT
1.58k stars 4.01k forks source link

Demo 12 - Version and Deprecation #57

Closed jsauni closed 2 years ago

jsauni commented 2 years ago

Changes to fix below issues.

Error

Error: Error creating DB Instance: InvalidParameterCombination: Cannot find version 10.4.13 for mariadb

Fixed version is no longer available (currently 10.4.21 to 10.4.25). However engine_version supports prefix of the version. So passing 10.4 instead supports current major and minor version and future patch versions.

Warning


Warning: Argument is deprecated
│ 
│   with aws_db_instance.mariadb,
│   on rds.tf line 24, in resource "aws_db_instance" "mariadb":
│   24:   name                    = "mariadb"
│ 
│ Use db_name instead```

Updating deprecated argument.
wardviaene commented 2 years ago

looks good! Thanks!