Expand description
Provides a resource to create a VPC Internet Gateway Attachment.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = internet_gateway_attachment::create(
"example",
InternetGatewayAttachmentArgs::builder()
.internet_gateway_id("${exampleInternetGateway.id}")
.vpc_id("${exampleVpc.id}")
.build_struct(),
);
let exampleInternetGateway = internet_gateway::create(
"exampleInternetGateway",
InternetGatewayArgs::builder().build_struct(),
);
let exampleVpc = vpc::create(
"exampleVpc",
VpcArgs::builder().cidr_block("10.1.0.0/16").build_struct(),
);
}
§Import
Using pulumi import
, import Internet Gateway Attachments using the id
. For example:
$ pulumi import aws:ec2/internetGatewayAttachment:InternetGatewayAttachment example igw-c0a643a9:vpc-123456
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments