Skip to content

Commit

Permalink
Merge pull request #493 from ministryofjustice/feature/add-region-var
Browse files Browse the repository at this point in the history
Adds a variable for region with a default.
  • Loading branch information
ep-93 authored Oct 4, 2024
2 parents 501ff70 + 539ca4a commit fe7bc92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit fe7bc92

Please sign in to comment.