published on Friday, Jun 12, 2026 by Pulumi
published on Friday, Jun 12, 2026 by Pulumi
Creates and manages a VPC for an Aiven project. If this resource is missing (for example, after a service power off), it’s removed from the state and a new create plan is generated.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const example = new aiven.ProjectVpc("example", {
project: "my-project",
cloudName: "aws-eu-central-1",
networkCidr: "192.168.6.0/24",
});
import pulumi
import pulumi_aiven as aiven
example = aiven.ProjectVpc("example",
project="my-project",
cloud_name="aws-eu-central-1",
network_cidr="192.168.6.0/24")
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewProjectVpc(ctx, "example", &aiven.ProjectVpcArgs{
Project: pulumi.String("my-project"),
CloudName: pulumi.String("aws-eu-central-1"),
NetworkCidr: pulumi.String("192.168.6.0/24"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var example = new Aiven.ProjectVpc("example", new()
{
Project = "my-project",
CloudName = "aws-eu-central-1",
NetworkCidr = "192.168.6.0/24",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.ProjectVpc;
import com.pulumi.aiven.ProjectVpcArgs;
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 example = new ProjectVpc("example", ProjectVpcArgs.builder()
.project("my-project")
.cloudName("aws-eu-central-1")
.networkCidr("192.168.6.0/24")
.build());
}
}
resources:
example:
type: aiven:ProjectVpc
properties:
project: my-project
cloudName: aws-eu-central-1
networkCidr: 192.168.6.0/24
pulumi {
required_providers {
aiven = {
source = "pulumi/aiven"
}
}
}
resource "aiven_projectvpc" "example" {
project = "my-project"
cloud_name = "aws-eu-central-1"
network_cidr = "192.168.6.0/24"
}
Create ProjectVpc Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectVpc(name: string, args: ProjectVpcArgs, opts?: CustomResourceOptions);@overload
def ProjectVpc(resource_name: str,
args: ProjectVpcArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectVpc(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
network_cidr: Optional[str] = None,
project: Optional[str] = None,
timeouts: Optional[ProjectVpcTimeoutsArgs] = None)func NewProjectVpc(ctx *Context, name string, args ProjectVpcArgs, opts ...ResourceOption) (*ProjectVpc, error)public ProjectVpc(string name, ProjectVpcArgs args, CustomResourceOptions? opts = null)
public ProjectVpc(String name, ProjectVpcArgs args)
public ProjectVpc(String name, ProjectVpcArgs args, CustomResourceOptions options)
type: aiven:ProjectVpc
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aiven_projectvpc" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectVpcArgs
- 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 ProjectVpcArgs
- 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 ProjectVpcArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectVpcArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectVpcArgs
- 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 projectVpcResource = new Aiven.ProjectVpc("projectVpcResource", new()
{
CloudName = "string",
NetworkCidr = "string",
Project = "string",
Timeouts = new Aiven.Inputs.ProjectVpcTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := aiven.NewProjectVpc(ctx, "projectVpcResource", &aiven.ProjectVpcArgs{
CloudName: pulumi.String("string"),
NetworkCidr: pulumi.String("string"),
Project: pulumi.String("string"),
Timeouts: &aiven.ProjectVpcTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aiven_projectvpc" "projectVpcResource" {
cloud_name = "string"
network_cidr = "string"
project = "string"
timeouts = {
create = "string"
delete = "string"
read = "string"
update = "string"
}
}
var projectVpcResource = new ProjectVpc("projectVpcResource", ProjectVpcArgs.builder()
.cloudName("string")
.networkCidr("string")
.project("string")
.timeouts(ProjectVpcTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
project_vpc_resource = aiven.ProjectVpc("projectVpcResource",
cloud_name="string",
network_cidr="string",
project="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const projectVpcResource = new aiven.ProjectVpc("projectVpcResource", {
cloudName: "string",
networkCidr: "string",
project: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: aiven:ProjectVpc
properties:
cloudName: string
networkCidr: string
project: string
timeouts:
create: string
delete: string
read: string
update: string
ProjectVpc 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 ProjectVpc resource accepts the following input properties:
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Network
Cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - Project string
- Project name. Changing this property forces recreation of the resource.
- Timeouts
Project
Vpc Timeouts
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Network
Cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - Project string
- Project name. Changing this property forces recreation of the resource.
- Timeouts
Project
Vpc Timeouts Args
- cloud_
name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network_
cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project string
- Project name. Changing this property forces recreation of the resource.
- timeouts object
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network
Cidr String - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project String
- Project name. Changing this property forces recreation of the resource.
- timeouts
Project
Vpc Timeouts
- cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network
Cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project string
- Project name. Changing this property forces recreation of the resource.
- timeouts
Project
Vpc Timeouts
- cloud_
name str - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network_
cidr str - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project str
- Project name. Changing this property forces recreation of the resource.
- timeouts
Project
Vpc Timeouts Args
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network
Cidr String - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project String
- Project name. Changing this property forces recreation of the resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectVpc resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Vpc stringId - Project VPC ID.
- State string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Vpc stringId - Project VPC ID.
- State string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
- id string
- The provider-assigned unique ID for this managed resource.
- project_
vpc_ stringid - Project VPC ID.
- state string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Vpc StringId - Project VPC ID.
- state String
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Vpc stringId - Project VPC ID.
- state string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
vpc_ strid - Project VPC ID.
- state str
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Vpc StringId - Project VPC ID.
- state String
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING.
Look up Existing ProjectVpc Resource
Get an existing ProjectVpc 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?: ProjectVpcState, opts?: CustomResourceOptions): ProjectVpc@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
network_cidr: Optional[str] = None,
project: Optional[str] = None,
project_vpc_id: Optional[str] = None,
state: Optional[str] = None,
timeouts: Optional[ProjectVpcTimeoutsArgs] = None) -> ProjectVpcfunc GetProjectVpc(ctx *Context, name string, id IDInput, state *ProjectVpcState, opts ...ResourceOption) (*ProjectVpc, error)public static ProjectVpc Get(string name, Input<string> id, ProjectVpcState? state, CustomResourceOptions? opts = null)public static ProjectVpc get(String name, Output<String> id, ProjectVpcState state, CustomResourceOptions options)resources: _: type: aiven:ProjectVpc get: id: ${id}import {
to = aiven_projectvpc.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.
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Network
Cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - Project string
- Project name. Changing this property forces recreation of the resource.
- Project
Vpc stringId - Project VPC ID.
- State string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - Timeouts
Project
Vpc Timeouts
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Network
Cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - Project string
- Project name. Changing this property forces recreation of the resource.
- Project
Vpc stringId - Project VPC ID.
- State string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - Timeouts
Project
Vpc Timeouts Args
- cloud_
name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network_
cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project string
- Project name. Changing this property forces recreation of the resource.
- project_
vpc_ stringid - Project VPC ID.
- state string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts object
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network
Cidr String - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project String
- Project name. Changing this property forces recreation of the resource.
- project
Vpc StringId - Project VPC ID.
- state String
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts
Project
Vpc Timeouts
- cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network
Cidr string - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project string
- Project name. Changing this property forces recreation of the resource.
- project
Vpc stringId - Project VPC ID.
- state string
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts
Project
Vpc Timeouts
- cloud_
name str - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network_
cidr str - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project str
- Project name. Changing this property forces recreation of the resource.
- project_
vpc_ strid - Project VPC ID.
- state str
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts
Project
Vpc Timeouts Args
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - network
Cidr String - IPv4 network range CIDR. Maximum length:
18. Changing this property forces recreation of the resource. - project String
- Project name. Changing this property forces recreation of the resource.
- project
Vpc StringId - Project VPC ID.
- state String
- Project VPC state. The possible values are
ACTIVE,APPROVED,DELETEDandDELETING. - timeouts Property Map
Supporting Types
ProjectVpcTimeouts, ProjectVpcTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default_ String
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default str
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default String
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
$ pulumi import aiven:index/projectVpc:ProjectVpc example PROJECT/PROJECT_VPC_ID
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
published on Friday, Jun 12, 2026 by Pulumi