-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Velocloud Module - Allowing for multiple vEdge instances to be created (
#77) * Allowing for multiple vEdge instances to be created * Continuous Integration - terraform fmt and terraform-docs * updated readme * Continuous Integration - terraform fmt and terraform-docs * modified the readme based on the quantity * added comment task * converted transit_gateway_connect_peer to for_each * Continuous Integration - terraform fmt and terraform-docs * updated for_each to use maps * Continuous Integration - terraform fmt and terraform-docs * outputs are all maps * Continuous Integration - terraform fmt and terraform-docs * converted cloudwatch alarms to for_each * toset() for the cloudwatch for_each * Revert "toset() for the cloudwatch for_each" This reverts commit 774a751. * Revert "converted cloudwatch alarms to for_each" This reverts commit 48dad49. * cleanup of outputs * Continuous Integration - terraform fmt and terraform-docs * final peer connect outputs * Continuous Integration - terraform fmt and terraform-docs * removed quantity in favor of `length(keys)` * Continuous Integration - terraform fmt and terraform-docs * updated readme to match the appropriate module --------- Co-authored-by: zachreborn <zachreborn@users.noreply.github.com>
- Loading branch information
1 parent
109532b
commit 40ba07a
Showing
7 changed files
with
128 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,43 @@ | ||
output "arn" { | ||
description = "The ARN of the transit gateway connect peer" | ||
value = aws_ec2_transit_gateway_connect_peer.peer.arn | ||
# Simple Outputs | ||
output "arns" { | ||
description = "A map of ARNs of the transit gateway connect peers." | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => value.arn } | ||
} | ||
|
||
output "bgp_asn" { | ||
description = "The BGP ASN of the connect peer." | ||
value = aws_ec2_transit_gateway_connect_peer.peer.bgp_asn | ||
output "bgp_asns" { | ||
description = "A map of BGP ASNs of the connect peers." | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => value.bgp_asn } | ||
} | ||
|
||
output "bgp_peer_address" { | ||
description = "The BGP peer address within the connect tunnel. This is the address peering with the transit gateway." | ||
value = aws_ec2_transit_gateway_connect_peer.peer.bgp_peer_address | ||
} | ||
|
||
output "bgp_transit_gateway_addresses" { | ||
description = "The BGP transit gateway address within the connect tunnel. This is the address of the transit gateway." | ||
value = aws_ec2_transit_gateway_connect_peer.peer.bgp_transit_gateway_addresses | ||
} | ||
|
||
output "id" { | ||
description = "The ID of the Transit Gateway Connect Peer" | ||
value = aws_ec2_transit_gateway_connect_peer.peer.id | ||
output "ids" { | ||
description = "A map of the IDs of the Transit Gateway Connect Peers" | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => value.id } | ||
} | ||
|
||
output "inside_cidr_blocks" { | ||
description = "The CIDR blocks associated with the inside IP addresses of the connect peer." | ||
value = aws_ec2_transit_gateway_connect_peer.peer.inside_cidr_blocks | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => value.inside_cidr_blocks } | ||
} | ||
|
||
output "peer_addresses" { | ||
description = "A map of the IP address of the connect peers." | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => value.peer_address } | ||
} | ||
|
||
output "peer_address" { | ||
description = "The IP address of the connect peer." | ||
value = aws_ec2_transit_gateway_connect_peer.peer.peer_address | ||
output "transit_gateway_addresses" { | ||
description = "A map of IP address of the transit gateway. This is the IP used to connect to the transit gateway." | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => value.transit_gateway_address } | ||
} | ||
|
||
output "transit_gateway_address" { | ||
description = "The IP address of the transit gateway. This is the IP used to connect to the transit gateway." | ||
value = aws_ec2_transit_gateway_connect_peer.peer.transit_gateway_address | ||
# Complex Outputs | ||
output "configurations" { | ||
description = "A map of the transit gateway connect peer configurations." | ||
value = { for key, value in aws_ec2_transit_gateway_connect_peer.peer : key => { | ||
bgp_asn = value.bgp_asn | ||
id = value.id | ||
insider_cidr_blocks = value.inside_cidr_blocks | ||
peer_address = value.peer_address | ||
transit_gateway_address = value.transit_gateway_address | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.