This commit is contained in:
commit
e2691f89e7
14 changed files with 553 additions and 0 deletions
24
infrastructure/tofu/providers.tf
Normal file
24
infrastructure/tofu/providers.tf
Normal file
|
@ -0,0 +1,24 @@
|
|||
terraform {
|
||||
backend "s3" {
|
||||
bucket = "adyxax-tofu-states"
|
||||
dynamodb_table = "tofu-states"
|
||||
key = "repositories/${local.name}"
|
||||
profile = "core"
|
||||
region = "eu-west-3"
|
||||
}
|
||||
required_providers {
|
||||
aws = {
|
||||
source = "hashicorp/aws"
|
||||
version = "5.91.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
for_each = toset(["core", "root", "tests"])
|
||||
|
||||
alias = "all"
|
||||
default_tags { tags = { "managed-by" = "tofu" } }
|
||||
profile = each.key
|
||||
region = "eu-west-3"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue