alicloud logo
Alibaba Cloud v3.29.0, Jan 20 23

Alibaba Cloud

The Alibaba Cloud provider for Pulumi can be used to provision any of the cloud resources available in Alibaba Cloud. The Alibaba Cloud provider must be configured with credentials to deploy and update resources in Alibaba Cloud.

Example

const alicloud = require("@pulumi/alicloud")

const vpc = new alicloud.vpc.Network("my-vpc", {
    cidrBlock: "10.0.0.0/16",
});
import * as alicloud from "@pulumi/alicloud";

const vpc = new alicloud.vpc.Network("my-vpc", {
    cidrBlock: "10.0.0.0/16",
});
import pulumi_alicloud as alicloud

vpc = alicloud.vpc.Network("my-vpc",
    cidr_block="10.0.0.0/16"
)
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	vpc "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vpc, err := vpc.NewVpc(ctx, "demo-instance", &vpc.VpcArgs{
			CidrBlock: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Alicloud.Vpc;

await Deployment.RunAsync(() =>
{
	var vpc = new Vpc("demo-instance", new VpcArgs
	{
		CidrBlock = "10.0.0.0/16"
	});
});