From 3deb7083f305b60e87cd7bfffa1acd0c75e2eab1 Mon Sep 17 00:00:00 2001 From: Avrohom Gottlieb Date: Fri, 22 Nov 2024 13:42:53 -0500 Subject: [PATCH] upgrade to aws provider version >4.x.x, add upgrade flag to init script --- infrastructure/init_terraform.py | 1 + infrastructure/provider.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/init_terraform.py b/infrastructure/init_terraform.py index 0e24e5a8..74535ad6 100644 --- a/infrastructure/init_terraform.py +++ b/infrastructure/init_terraform.py @@ -16,6 +16,7 @@ def init_terraform(env, user): command = [ "terraform", "init", + "-upgrade", init_bucket, init_key, "-backend-config=dynamodb_table=scpca-portal-terraform-lock", diff --git a/infrastructure/provider.tf b/infrastructure/provider.tf index 27c15246..f6f56402 100644 --- a/infrastructure/provider.tf +++ b/infrastructure/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { aws = { source = "-/aws" - version = ">= 3.37.0, < 4.0.0" + version = ">= 4.9.0, < 5.0.0" } } required_version = "0.13.0"