From 095f8d83812345bd7c88044132ee30497d0fc72d Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sun, 20 Mar 2022 11:41:01 +0100 Subject: [PATCH] feat: update to AWS-provider 4.x --- main.tf | 2 +- providers.tf | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 providers.tf diff --git a/main.tf b/main.tf index ef116e8..175efaa 100644 --- a/main.tf +++ b/main.tf @@ -39,7 +39,7 @@ resource "aws_db_instance" "default" { max_allocated_storage = 60 skip_final_snapshot = var.skip_final_snapshot identifier = var.identifier - name = var.db_name + db_name = var.db_name username = var.master_username password = local.password monitoring_interval = var.enhanced_monitoring ? 60 : 0 diff --git a/providers.tf b/providers.tf new file mode 100644 index 0000000..6276e08 --- /dev/null +++ b/providers.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 4.0" + } + } +}