LocalGatewayRoute

Manages an EC2 Local Gateway Route. More information can be found in the Outposts User Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.LocalGatewayRoute;
import com.pulumi.aws.ec2.LocalGatewayRouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LocalGatewayRoute("example", LocalGatewayRouteArgs.builder()
.destinationCidrBlock("172.16.0.0/16")
.localGatewayRouteTableId(data.aws_ec2_local_gateway_route_table().example().id())
.localGatewayVirtualInterfaceGroupId(data.aws_ec2_local_gateway_virtual_interface_group().example().id())
.build());
}
}

Import

aws_ec2_local_gateway_route can be imported by using the EC2 Local Gateway Route Table identifier and destination CIDR block separated by underscores (_), e.g.,

$ pulumi import aws:ec2/localGatewayRoute:LocalGatewayRoute example lgw-rtb-12345678_172.16.0.0/16

Properties

Link copied to clipboard

IPv4 CIDR range used for destination matches. Routing decisions are based on the most specific match.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Identifier of EC2 Local Gateway Route Table.

Link copied to clipboard

Identifier of EC2 Local Gateway Virtual Interface Group.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>