-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish Package Metadata for [email protected] (#5264)
- Loading branch information
1 parent
a1f2f95
commit 0ed8266
Showing
3 changed files
with
1,340 additions
and
113 deletions.
There are no files selected for viewing
89 changes: 2 additions & 87 deletions
89
themes/default/content/registry/packages/alicloud/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,5 @@ | ||
--- | ||
title: Alibaba Cloud | ||
meta_desc: Provides an overview of the Alibaba Cloud Provider for Pulumi. | ||
title: Alicloud | ||
meta_desc: The Alicloud provider for Pulumi can be used to provision any of the cloud resources available in Alicloud. | ||
layout: package | ||
--- | ||
|
||
The Alibaba Cloud provider for Pulumi can be used to provision any of the cloud resources available in [Alibaba Cloud](https://www.alibabacloud.com/). | ||
The Alibaba Cloud provider must be configured with credentials to deploy and update resources in Alibaba Cloud. | ||
|
||
## Example | ||
|
||
{{< chooser language "javascript,typescript,python,go,csharp" >}} | ||
|
||
{{% choosable language javascript %}} | ||
|
||
```javascript | ||
const alicloud = require("@pulumi/alicloud") | ||
|
||
const vpc = new alicloud.vpc.Network("my-vpc", { | ||
cidrBlock: "10.0.0.0/16", | ||
}); | ||
``` | ||
|
||
{{% /choosable %}} | ||
{{% choosable language typescript %}} | ||
|
||
```typescript | ||
import * as alicloud from "@pulumi/alicloud"; | ||
|
||
const vpc = new alicloud.vpc.Network("my-vpc", { | ||
cidrBlock: "10.0.0.0/16", | ||
}); | ||
``` | ||
|
||
{{% /choosable %}} | ||
{{% choosable language python %}} | ||
|
||
```python | ||
import pulumi_alicloud as alicloud | ||
|
||
vpc = alicloud.vpc.Network("my-vpc", | ||
cidr_block="10.0.0.0/16" | ||
) | ||
``` | ||
|
||
{{% /choosable %}} | ||
{{% choosable language go %}} | ||
|
||
```go | ||
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 | ||
}) | ||
} | ||
|
||
``` | ||
|
||
{{% /choosable %}} | ||
{{% choosable language csharp %}} | ||
|
||
```csharp | ||
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" | ||
}); | ||
}); | ||
``` | ||
|
||
{{% /choosable %}} | ||
|
||
{{< /chooser >}} |
Oops, something went wrong.