provider "aws" {
  region = var.aws_region
}

terraform {
  backend "s3" {
    bucket  = "dev-grps-terraform-state"
    key     = "atlantis/terraform.tfstate"
    region  = "eu-central-1"
    encrypt = "true"
  }
}

module "cross_account_access" {
  source            = "git@github.com:theorchard/terraform-atlantis.git//modules?ref=3.4.52"
  environment       = "dev"
  terrastate_bucket = "dev-grps-terraform-state"
  iam_policy_tags = {
    apply_policy_part_one = {
      "eiso-exception" = "aws.04.10"
    }
    apply_policy_part_two = {
      "eiso-exception" = "aws.04.10"
    }
    tf_infra_core_apply_policy = {
      "eiso-exception" = "aws.04.10"
    }
  }
}

