From 539ca4acbaf2cd2450539e3397a30bf530db9ad8 Mon Sep 17 00:00:00 2001 From: Edward Proctor Date: Fri, 4 Oct 2024 14:41:30 +0100 Subject: [PATCH] Added region var --- providers.tf | 2 +- variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/providers.tf b/providers.tf index 4c0b4f7..01b9fba 100644 --- a/providers.tf +++ b/providers.tf @@ -1,6 +1,6 @@ provider "aws" { alias = "bucket-replication" - region = "eu-west-2" + region = var.region assume_role { role_arn = "arn:aws:iam::${var.account_number}:role/MemberInfrastructureAccess" } diff --git a/variables.tf b/variables.tf index a199a2b..b17ee4c 100644 --- a/variables.tf +++ b/variables.tf @@ -14,3 +14,9 @@ variable "application_name" { type = string description = "Name of application" } + +variable "region" { + description = "The AWS region where resources will be created" + type = string + default = "eu-west-2" +} \ No newline at end of file