From 58406931af8f8e0981b7ce0eee266ca119edfe25 Mon Sep 17 00:00:00 2001 From: Renny Omorinsola Fadoju <32823756+Renny4Real@users.noreply.github.com> Date: Mon, 6 Dec 2021 17:12:22 +0000 Subject: [PATCH] Remove backend from within module (#62) --- terraform/mash-setup-staging/main.tf | 3 +++ terraform/modules/api-proxy-s3-sqs/providers.tf | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/terraform/mash-setup-staging/main.tf b/terraform/mash-setup-staging/main.tf index f731247..2dbf213 100644 --- a/terraform/mash-setup-staging/main.tf +++ b/terraform/mash-setup-staging/main.tf @@ -1,6 +1,9 @@ provider "aws" { region = "eu-west-2" } +terraform { + backend "s3" {} +} module "mash_data_processing" { source = "../modules/api-proxy-s3-sqs" diff --git a/terraform/modules/api-proxy-s3-sqs/providers.tf b/terraform/modules/api-proxy-s3-sqs/providers.tf index 5752c6b..ed4a9b2 100644 --- a/terraform/modules/api-proxy-s3-sqs/providers.tf +++ b/terraform/modules/api-proxy-s3-sqs/providers.tf @@ -1,5 +1,4 @@ terraform { - backend "s3" {} required_providers { aws = { source = "hashicorp/aws"