Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created December 21, 2020 14:55
Show Gist options
  • Save swade1987/4ccdeb77636aaf8f668c9d0f988b50e6 to your computer and use it in GitHub Desktop.
Save swade1987/4ccdeb77636aaf8f668c9d0f988b50e6 to your computer and use it in GitHub Desktop.
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