Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 12, 2022
1 parent d0f9753 commit ff65dcb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vpc-transit-gateway-association/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "vpc_tgw" {
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.66.0 |
| <a name="provider_aws.network_account"></a> [aws.network\_account](#provider\_aws.network\_account) | >= 3.66.0 |
| <a name="provider_aws.tgw_east"></a> [aws.tgw\_east](#provider\_aws.tgw\_east) | >= 3.66.0 |
| <a name="provider_aws.tgw_west"></a> [aws.tgw\_west](#provider\_aws.tgw\_west) | >= 3.66.0 |

Expand All @@ -38,7 +39,9 @@ No modules.
| Name | Type |
|------|------|
| [aws_arn.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/arn) | data source |
| [aws_arn.network_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/arn) | data source |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_caller_identity.network_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_ec2_transit_gateway.tgw_east](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ec2_transit_gateway) | data source |
| [aws_ec2_transit_gateway.tgw_west](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ec2_transit_gateway) | data source |
| [aws_iam_account_alias.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_account_alias) | data source |
Expand Down
12 changes: 12 additions & 0 deletions vpc-transit-gateway-association/data.network_account.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
data "aws_caller_identity" "network_account" {
provider = aws.network_account
}

data "aws_arn" "network_account" {
provider = aws.network_account
arn = data.aws_caller_identity.network_account.arn
}

# output "network_account" {
# value = data.aws_arn.network_account
# }

0 comments on commit ff65dcb

Please sign in to comment.