diff --git a/dns_zones.tf b/dns_zones.tf index c4b06f0..28abafe 100644 --- a/dns_zones.tf +++ b/dns_zones.tf @@ -29,6 +29,14 @@ provider "aws" { } } +provider "aws" { + alias = "self" + assume_role { + role_arn = format("arn:%v:iam::%v:role/r-inf-terraform", data.aws_arn.current.partition, local.aws_account_id) + session_name = var.os_username + } +} + #------------------------------------------------- # network prod for shared vpcs zones #------------------------------------------------- diff --git a/variables.tf b/variables.tf index 539d00e..cad6db0 100644 --- a/variables.tf +++ b/variables.tf @@ -144,12 +144,6 @@ variable "main_dns_profile" { default = "269244441389-lab-gov-network-nonprod" } -# variable "dns_zone_description_prefix" { -# description = "Zone description with the org-project-program-environment" -# type = string -# default = "" -# } - variable "shared_vpc_label" { description = "Label to use for shared VPC for flowlogs and other things" type = string