Expand description
Provides a VPC Endpoint Service resource. Service consumers can create an Interface VPC Endpoint to connect to the service.
NOTE on VPC Endpoint Services and VPC Endpoint Service Allowed Principals: This provider provides both a standalone VPC Endpoint Service Allowed Principal resource and a VPC Endpoint Service resource with an
allowed_principals
attribute. Do not use the same principal ARN in both a VPC Endpoint Service resource and a VPC Endpoint Service Allowed Principal resource. Doing so will cause a conflict and will overwrite the association.
§Example Usage
§Network Load Balancers
ⓘ
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(),
);
}
§Gateway Load Balancers
ⓘ
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)
.gateway_load_balancer_arns(vec!["${exampleAwsLb.arn}",])
.build_struct(),
);
}
§Import
Using pulumi import
, import VPC Endpoint Services using the VPC endpoint service id
. For example:
$ pulumi import aws:ec2/vpcEndpointService:VpcEndpointService foo vpce-svc-0f97a19d3fa8220bc
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