Router Interface
Manages a Cloud Router interface. For more information see the official documentation and API.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.RouterInterface;
import com.pulumi.gcp.compute.RouterInterfaceArgs;
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 foobar = new RouterInterface("foobar", RouterInterfaceArgs.builder()
.ipRange("169.254.1.1/30")
.region("us-central1")
.router("router-1")
.vpnTunnel("tunnel-1")
.build());
}
}
Content copied to clipboard
Import
Router interfaces can be imported using the project
(optional), region
, router
, and name
, e.g.
$ pulumi import gcp:compute/routerInterface:RouterInterface foobar my-project/us-central1/router-1/interface-1
Content copied to clipboard
$ pulumi import gcp:compute/routerInterface:RouterInterface foobar us-central1/router-1/interface-1
Content copied to clipboard
Properties
Link copied to clipboard
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.