Skip to content

Commit

Permalink
define self
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 30, 2024
1 parent b41f1ba commit d8f800f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dns_zones.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ locals {
zone_ids = compact(var.zone_ids)
}

#-------------------------------------------------
# Providers for Cross Account DNS Action
#-------------------------------------------------
provider "aws" {
alias = "self"
assume_role {
role_arn = format("arn:%v:iam::%v:role/r-inf-terraform", data.aws_arn.current.partition, var.account_id)
session_name = var.os_username
}
}

#---
# network prod
#---
Expand Down

0 comments on commit d8f800f

Please sign in to comment.