diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68e0e76..e410e64 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -466,3 +466,4 @@
- vpc-transit-gateway-association/self
- add variables:
- enable_tgw_attachment (for firewall tables, to not attach the TGW which is only for attachment)
+ - add output for self and peer attachment ids
diff --git a/vpc-transit-gateway-association/self/README.md b/vpc-transit-gateway-association/self/README.md
index 5b802f3..9f9ea2c 100644
--- a/vpc-transit-gateway-association/self/README.md
+++ b/vpc-transit-gateway-association/self/README.md
@@ -290,7 +290,9 @@ module "vpc_tgw_self" {
| Name | Description |
|------|-------------|
| [gateway\_peer](#output\_gateway\_peer) | Transit Gateway peer (other region) |
+| [gateway\_peer\_attachment\_id](#output\_gateway\_peer\_attachment\_id) | Transit Gateway peer (other region) attachment id |
| [gateway\_self](#output\_gateway\_self) | Transit Gateway self (this region) |
+| [gateway\_self\_attachment\_id](#output\_gateway\_self\_attachment\_id) | Transit Gateway self (this region) attachment id |
| [map\_route\_tables\_peer](#output\_map\_route\_tables\_peer) | Transit Gateway route tables map (VRF:id) peer (other region) |
| [map\_route\_tables\_self](#output\_map\_route\_tables\_self) | Transit Gateway route tables map (VRF:id) self (this region) |
| [route\_tables\_peer](#output\_route\_tables\_peer) | Transit Gateway route tables peer (other region) |
diff --git a/vpc-transit-gateway-association/self/outputs.tf b/vpc-transit-gateway-association/self/outputs.tf
index faa72c4..4eed9d5 100644
--- a/vpc-transit-gateway-association/self/outputs.tf
+++ b/vpc-transit-gateway-association/self/outputs.tf
@@ -10,6 +10,16 @@ output "gateway_peer" {
value = data.aws_ec2_transit_gateway.gateway_peer.id
}
+output "gateway_self_attachment_id" {
+ description = "Transit Gateway self (this region) attachment id"
+ value = data.aws_ec2_transit_gateway_peering_attachment.attachment_self.id
+}
+
+output "gateway_peer_attachment_id" {
+ description = "Transit Gateway peer (other region) attachment id"
+ value = data.aws_ec2_transit_gateway_peering_attachment.attachment_peer.id
+}
+
output "route_tables_self" {
description = "Transit Gateway route tables self (this region)"
# value = data.aws_ec2_transit_gateway_route_table.route_tables_self