Created
December 21, 2020 14:55
-
-
Save swade1987/4ccdeb77636aaf8f668c9d0f988b50e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
backend "s3" { | |
... | |
} | |
required_version = "= 0.13.4" | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.9.0" | |
} | |
fugue = { | |
source = "registry.terraform.io/fugue/fugue" | |
version = "0.0.1" | |
} | |
} | |
} | |
provider "aws" { | |
region = "eu-west-1" | |
assume_role { | |
role_arn = "arn:aws:iam::redcted:role/redacted" | |
} | |
} | |
provider "fugue" { | |
alias = "terraform-runner" | |
client_id = var.fugue_client_id | |
client_secret = var.fugue_client_secret | |
} | |
module "aws_account" { | |
source = "git::git@gitlab.com:redacted?ref=d39221d" | |
providers = { | |
aws = aws.terraform-runner | |
fugue = fugue.terraform-runner | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment