published on Thursday, Jul 16, 2026 by Volcengine
published on Thursday, Jul 16, 2026 by Volcengine
VPC access endpoint
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const cRVpcEndpointDemo = new volcenginecc.cr.VpcEndpoint("CRVpcEndpointDemo", {
registry: "registry_xxxxxx",
vpcs: [{
account_id: 21000000000000,
subnet_id: "subnet_id_xxxx",
vpc_id: "vpc_id_xxxx",
}],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
c_r_vpc_endpoint_demo = volcenginecc.cr.VpcEndpoint("CRVpcEndpointDemo",
registry="registry_xxxxxx",
vpcs=[{
"account_id": 21000000000000,
"subnet_id": "subnet_id_xxxx",
"vpc_id": "vpc_id_xxxx",
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cr.NewVpcEndpoint(ctx, "CRVpcEndpointDemo", &cr.VpcEndpointArgs{
Registry: pulumi.String("registry_xxxxxx"),
Vpcs: cr.VpcEndpointVpcArray{
&cr.VpcEndpointVpcArgs{
Account_id: 21000000000000,
Subnet_id: "subnet_id_xxxx",
Vpc_id: "vpc_id_xxxx",
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var cRVpcEndpointDemo = new Volcenginecc.Cr.VpcEndpoint("CRVpcEndpointDemo", new()
{
Registry = "registry_xxxxxx",
Vpcs = new[]
{
new Volcenginecc.Cr.Inputs.VpcEndpointVpcArgs
{
Account_id = 21000000000000,
Subnet_id = "subnet_id_xxxx",
Vpc_id = "vpc_id_xxxx",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cr.VpcEndpoint;
import com.volcengine.volcenginecc.cr.VpcEndpointArgs;
import com.pulumi.volcenginecc.cr.inputs.VpcEndpointVpcArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 cRVpcEndpointDemo = new VpcEndpoint("cRVpcEndpointDemo", VpcEndpointArgs.builder()
.registry("registry_xxxxxx")
.vpcs(VpcEndpointVpcArgs.builder()
.account_id(21000000000000)
.subnet_id("subnet_id_xxxx")
.vpc_id("vpc_id_xxxx")
.build())
.build());
}
}
resources:
cRVpcEndpointDemo:
type: volcenginecc:cr:VpcEndpoint
name: CRVpcEndpointDemo
properties:
registry: registry_xxxxxx
vpcs:
- account_id: 2.1e+13
subnet_id: subnet_id_xxxx
vpc_id: vpc_id_xxxx
pulumi {
required_providers {
volcenginecc = {
source = "pulumi/volcenginecc"
}
}
}
resource "volcenginecc_cr_vpcendpoint" "CRVpcEndpointDemo" {
registry = "registry_xxxxxx"
vpcs {
account_id = 21000000000000
subnet_id = "subnet_id_xxxx"
vpc_id = "vpc_id_xxxx"
}
}
Create VpcEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEndpoint(name: string, args: VpcEndpointArgs, opts?: CustomResourceOptions);@overload
def VpcEndpoint(resource_name: str,
args: VpcEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
registry: Optional[str] = None,
vpcs: Optional[Sequence[VpcEndpointVpcArgs]] = None)func NewVpcEndpoint(ctx *Context, name string, args VpcEndpointArgs, opts ...ResourceOption) (*VpcEndpoint, error)public VpcEndpoint(string name, VpcEndpointArgs args, CustomResourceOptions? opts = null)
public VpcEndpoint(String name, VpcEndpointArgs args)
public VpcEndpoint(String name, VpcEndpointArgs args, CustomResourceOptions options)
type: volcenginecc:cr:VpcEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_cr_vpcendpoint" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcEndpointArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcEndpointResource = new Volcenginecc.Cr.VpcEndpoint("vpcEndpointResource", new()
{
Registry = "string",
Vpcs = new[]
{
new Volcenginecc.Cr.Inputs.VpcEndpointVpcArgs
{
AccountId = 0,
SubnetId = "string",
VpcId = "string",
},
},
});
example, err := cr.NewVpcEndpoint(ctx, "vpcEndpointResource", &cr.VpcEndpointArgs{
Registry: pulumi.String("string"),
Vpcs: cr.VpcEndpointVpcArray{
&cr.VpcEndpointVpcArgs{
AccountId: pulumi.Int(0),
SubnetId: pulumi.String("string"),
VpcId: pulumi.String("string"),
},
},
})
resource "volcenginecc_cr_vpcendpoint" "vpcEndpointResource" {
registry = "string"
vpcs {
account_id = 0
subnet_id = "string"
vpc_id = "string"
}
}
var vpcEndpointResource = new com.volcengine.volcenginecc.cr.VpcEndpoint("vpcEndpointResource", com.volcengine.volcenginecc.cr.VpcEndpointArgs.builder()
.registry("string")
.vpcs(VpcEndpointVpcArgs.builder()
.accountId(0)
.subnetId("string")
.vpcId("string")
.build())
.build());
vpc_endpoint_resource = volcenginecc.cr.VpcEndpoint("vpcEndpointResource",
registry="string",
vpcs=[{
"account_id": 0,
"subnet_id": "string",
"vpc_id": "string",
}])
const vpcEndpointResource = new volcenginecc.cr.VpcEndpoint("vpcEndpointResource", {
registry: "string",
vpcs: [{
accountId: 0,
subnetId: "string",
vpcId: "string",
}],
});
type: volcenginecc:cr:VpcEndpoint
properties:
registry: string
vpcs:
- accountId: 0
subnetId: string
vpcId: string
VpcEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcEndpoint resource accepts the following input properties:
- Registry string
- Image repository instance name
- Vpcs
List<Volcengine.
Vpc Endpoint Vpc> - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Registry string
- Image repository instance name
- Vpcs
[]Vpc
Endpoint Vpc Args - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry string
- Image repository instance name
- vpcs list(object)
- Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry String
- Image repository instance name
- vpcs
List<Vpc
Endpoint Vpc> - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry string
- Image repository instance name
- vpcs
Vpc
Endpoint Vpc[] - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry str
- Image repository instance name
- vpcs
Sequence[Vpc
Endpoint Vpc Args] - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry String
- Image repository instance name
- vpcs List<Property Map>
- Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEndpoint resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpcEndpoint Resource
Get an existing VpcEndpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcEndpointState, opts?: CustomResourceOptions): VpcEndpoint@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
registry: Optional[str] = None,
vpcs: Optional[Sequence[VpcEndpointVpcArgs]] = None) -> VpcEndpointfunc GetVpcEndpoint(ctx *Context, name string, id IDInput, state *VpcEndpointState, opts ...ResourceOption) (*VpcEndpoint, error)public static VpcEndpoint Get(string name, Input<string> id, VpcEndpointState? state, CustomResourceOptions? opts = null)public static VpcEndpoint get(String name, Output<String> id, VpcEndpointState state, CustomResourceOptions options)resources: _: type: volcenginecc:cr:VpcEndpoint get: id: ${id}import {
to = volcenginecc_cr_vpcendpoint.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Registry string
- Image repository instance name
- Vpcs
List<Volcengine.
Vpc Endpoint Vpc> - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Registry string
- Image repository instance name
- Vpcs
[]Vpc
Endpoint Vpc Args - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry string
- Image repository instance name
- vpcs list(object)
- Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry String
- Image repository instance name
- vpcs
List<Vpc
Endpoint Vpc> - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry string
- Image repository instance name
- vpcs
Vpc
Endpoint Vpc[] - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry str
- Image repository instance name
- vpcs
Sequence[Vpc
Endpoint Vpc Args] - Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- registry String
- Image repository instance name
- vpcs List<Property Map>
- Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
Supporting Types
VpcEndpointVpc, VpcEndpointVpcArgs
- account_
id number - Primary account ID for the VPC
- subnet_
id string - Subnet ID
- vpc_
id string - VPC ID。
- account_
id int - Primary account ID for the VPC
- subnet_
id str - Subnet ID
- vpc_
id str - VPC ID。
Import
$ pulumi import volcenginecc:cr/vpcEndpoint:VpcEndpoint example "registry"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Jul 16, 2026 by Volcengine