Skip to content

Feature request: "propagate_intra_route_tables_vgw" #352

@paullschock

Description

@paullschock

I am utilizing intra_subnets as a part of a use-case where I am exposing AWS services to a private (non-internet connected) network connected to AWS via a virtual gateway interface (by way of direct connect private vif) and would like to be able to optionally propagate learned routes to intra_subnets.

Following from how this is done for private subnets, I think the following would work (assuming additional variable added):

resource "aws_vpn_gateway_route_propagation" "intra" {
  count = "${var.create_vpc && var.propagate_intra_route_tables_vgw && (var.enable_vpn_gateway || var.vpn_gateway_id != "") ? length(var.intra_subnets) : 0}"

  route_table_id = "${element(aws_route_table.intra.*.id, count.index)}"
  vpn_gateway_id = "${element(concat(aws_vpn_gateway.this.*.id, aws_vpn_gateway_attachment.this.*.vpn_gateway_id), count.index)}"
}

Put together a more complete commit in a branch here paullschock@2da6b56

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions