
# base
data "terraform_remote_state" "base" {
  backend = "s3"
  workspace = terraform.workspace
  config = {
    bucket = "nf-mop-tf-state"
    key = "base/terraform.tfstate"
    region = "us-east-1"
    encrypt = true
  }
}

data "terraform_remote_state" "mop_core" {
  backend = "s3"
  workspace = terraform.workspace
  config = {
    bucket = "nf-mop-tf-state"
    key = "core/terraform.tfstate"
    region = "us-east-1"
    encrypt = true
  }
}

data "terraform_remote_state" "mop_core_failover" {

  backend = "s3"
  workspace = terraform.workspace

  config = {
    bucket = "nf-mop-tf-state"
    key = "core-failover-region/terraform.tfstate"
    region = "us-east-1"
    encrypt = true
  }
}


# Query the current account ID
data aws_caller_identity "current" {}