Expand description
Provides a resource to accept a pending VPC Endpoint Connection accept request to VPC Endpoint Service.
§Example Usage
§Accept cross-account request
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = vpc_endpoint_service::create(
"example",
VpcEndpointServiceArgs::builder()
.acceptance_required(false)
.network_load_balancer_arns(vec!["${exampleAwsLb.arn}",])
.build_struct(),
);
let exampleVpcEndpoint = vpc_endpoint::create(
"exampleVpcEndpoint",
VpcEndpointArgs::builder()
.private_dns_enabled(false)
.security_group_ids(vec!["${test.id}",])
.service_name("${testAwsVpcEndpointService.serviceName}")
.vpc_endpoint_type("Interface")
.vpc_id("${testAlternate.id}")
.build_struct(),
);
let exampleVpcEndpointConnectionAccepter = vpc_endpoint_connection_accepter::create(
"exampleVpcEndpointConnectionAccepter",
VpcEndpointConnectionAccepterArgs::builder()
.vpc_endpoint_id("${exampleVpcEndpoint.id}")
.vpc_endpoint_service_id("${example.id}")
.build_struct(),
);
}
§Import
Using pulumi import
, import VPC Endpoint Services using ID of the connection, which is the VPC Endpoint Service ID
and VPC Endpoint ID
separated by underscore (_
).. For example:
$ pulumi import aws:ec2/vpcEndpointConnectionAccepter:VpcEndpointConnectionAccepter foo vpce-svc-0f97a19d3fa8220bc_vpce-010601a6db371e263
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