2024-03-02 11:59:10 +00:00
|
|
|
terraform {
|
|
|
|
backend "s3" {
|
2024-03-02 13:39:26 +00:00
|
|
|
# PROVIDE THIS KEY ... FILE ISOLATION
|
|
|
|
key = "global/s3/terraform.tfstate"
|
|
|
|
# PROVIDE THIS KEY ... FILE ISOLATION
|
2024-03-02 11:59:10 +00:00
|
|
|
}
|
|
|
|
required_version = ">= 1.0.0"
|
|
|
|
required_providers {
|
|
|
|
aws = {
|
|
|
|
source = "hashicorp/aws"
|
2024-03-02 16:10:44 +00:00
|
|
|
version = ">= 5.0.0"
|
2024-03-02 11:59:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
provider "aws" {
|
|
|
|
region = var.aws_region
|
|
|
|
# using aws-vault to assume a role
|
|
|
|
assume_role {
|
2024-03-02 16:10:44 +00:00
|
|
|
duration = "3600s"
|
2024-03-02 11:59:10 +00:00
|
|
|
role_arn = var.role_arn
|
|
|
|
}
|
|
|
|
}
|