From d2546eca6fb4a1d4d7fc5d77d0b36cf5c3e9b5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Aufort?= <taufort@ippon.fr> Date: Thu, 25 Mar 2021 14:46:09 +0100 Subject: [PATCH] feat(terraform): update workspace key prefix and authorize provider automatic upgrades --- deploy/main.tf | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/deploy/main.tf b/deploy/main.tf index 7f940c0..fe1b750 100644 --- a/deploy/main.tf +++ b/deploy/main.tf @@ -1,21 +1,22 @@ terraform { backend "s3" { - bucket = "edebrye-cloud-monitor-tfstate" - key = "cloud-monitor-app.tfstate" - region = "eu-west-1" - encrypt = true - dynamodb_table = "edebrye-cloud-monitor-tfstate-lock" + bucket = "edebrye-cloud-monitor-tfstate" + key = "cloud-monitor-app.tfstate" + region = "eu-west-1" + encrypt = true + dynamodb_table = "edebrye-cloud-monitor-tfstate-lock" + workspace_key_prefix = "" } required_providers { aws = { - version = ">= 3.30.0" + version = "~> 3.30" source = "hashicorp/aws" } archive = { - version = ">=2.1.0" + version = "~> 2.1" source = "hashicorp/archive" } } @@ -49,4 +50,4 @@ locals { } } -data "aws_region" "current" {} \ No newline at end of file +data "aws_region" "current" {} -- GitLab