Skip to content

Commit a1e457e

Browse files
committed
command make prepare executed
1 parent f4b8656 commit a1e457e

File tree

13 files changed

+2348
-39
lines changed

13 files changed

+2348
-39
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
PROJECT_NAME := xyz Package
1+
PROJECT_NAME := tencentcloud Package
22

33
SHELL := /bin/bash
4-
PACK := xyz
4+
PACK := tencentcloud
55
ORG := pulumi
66
PROJECT := github.com/${ORG}/pulumi-${PACK}
77
NODE_MODULE_NAME := @pulumi/${PACK}
@@ -29,13 +29,13 @@ prepare::
2929
mv "provider/cmd/pulumi-resource-x${EMPTY_TO_AVOID_SED}yz" provider/cmd/pulumi-resource-${NAME}
3030

3131
if [[ "${OS}" != "Darwin" ]]; then \
32-
sed -i 's,github.com/pulumi/pulumi-xyz,${REPOSITORY},g' provider/go.mod; \
32+
sed -i 's,github.com/tencentcloudstack/pulumi-tencentcloud,${REPOSITORY},g' provider/go.mod; \
3333
find ./ ! -path './.git/*' -type f -exec sed -i 's/[x]yz/${NAME}/g' {} \; &> /dev/null; \
3434
fi
3535

3636
# In MacOS the -i parameter needs an empty string to execute in place.
3737
if [[ "${OS}" == "Darwin" ]]; then \
38-
sed -i '' 's,github.com/pulumi/pulumi-xyz,${REPOSITORY},g' provider/go.mod; \
38+
sed -i '' 's,github.com/tencentcloudstack/pulumi-tencentcloud,${REPOSITORY},g' provider/go.mod; \
3939
find ./ ! -path './.git/*' -type f -exec sed -i '' 's/[x]yz/${NAME}/g' {} \; &> /dev/null; \
4040
fi
4141

README-PROVIDER.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Foo Resource Provider
1+
# TencentCloud Resource Provider
22

3-
The Foo Resource Provider lets you manage [Foo](http://example.com) resources.
3+
The TencentCloud Resource Provider lets you manage [TencentCloud](https://cloud.tencent.com/) resources.
44

55
## Installing
66

@@ -11,46 +11,47 @@ This package is available for several languages/platforms:
1111
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
1212

1313
```bash
14-
npm install @pulumi/foo
14+
npm install @pulumi/tencentcloud
1515
```
1616

1717
or `yarn`:
1818

1919
```bash
20-
yarn add @pulumi/foo
20+
yarn add @pulumi/tencentcloud
2121
```
2222

2323
### Python
2424

2525
To use from Python, install using `pip`:
2626

2727
```bash
28-
pip install pulumi_foo
28+
pip install pulumi_tencentcloud
2929
```
3030

3131
### Go
3232

3333
To use from Go, use `go get` to grab the latest version of the library:
3434

3535
```bash
36-
go get github.com/pulumi/pulumi-foo/sdk/go/...
36+
go get github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/...
3737
```
3838

3939
### .NET
4040

4141
To use from .NET, install using `dotnet add package`:
4242

4343
```bash
44-
dotnet add package Pulumi.Foo
44+
dotnet add package Pulumi.TencentCloud
4545
```
4646

4747
## Configuration
4848

49-
The following configuration points are available for the `foo` provider:
49+
The following configuration points are available for the `tencentcloud` provider:
5050

51-
- `foo:apiKey` (environment: `FOO_API_KEY`) - the API key for `foo`
52-
- `foo:region` (environment: `FOO_REGION`) - the region in which to deploy resources
51+
- `tencentcloud:secretId` (environment: `TENCENTCLOUD_SECRET_ID`) - the API Secret ID for `tencentcloud`
52+
- `tencentcloud:secretKey` (environment: `TENCENTCLOUD_SECRET_KEY`) - the API Secret Key for `tencentcloud`
53+
- `tencentcloud:region` (environment: `TENCENTCLOUD_REGION`) - the region in which to deploy resources
5354

5455
## Reference
5556

56-
For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/foo/api-docs/).
57+
For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/tencentcloud/api-docs/).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ From the templated repository:
5252
This will do the following:
5353
- rename folders in `provider/cmd` to `pulumi-resource-foo` and `pulumi-tfgen-foo`
5454
- replace dependencies in `provider/go.mod` to reflect your repository name
55-
- find and replace all instances of the boilerplate `xyz` with the `NAME` of your provider.
55+
- find and replace all instances of the boilerplate `tencentcloud` with the `NAME` of your provider.
5656

5757
Note for third-party providers:
5858
- Make sure to set the correct GitHub organization/username in all files referencing your provider as a dependency:

deployment-templates/.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ before:
55
hooks:
66
- make tfgen
77
builds:
8-
- binary: provider-resource-xyz
8+
- binary: provider-resource-tencentcloud
99
dir: provider
1010
env:
1111
- CGO_ENABLED=0
@@ -18,8 +18,8 @@ builds:
1818
- linux
1919
ldflags:
2020
# The line below MUST align with the module in current provider/go.mod
21-
- -X github.com/your-org-name/pulumi-xyz/provider/pkg/version.Version={{.Tag }}
22-
main: ./cmd/pulumi-resource-xyz/
21+
- -X github.com/your-org-name/pulumi-tencentcloud/provider/pkg/version.Version={{.Tag }}
22+
main: ./cmd/pulumi-resource-tencentcloud/
2323
changelog:
2424
skip: true
2525
release:

examples/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/pulumi/pulumi-xyz/examples
1+
module github.com/tencentcloudstack/pulumi-tencentcloud/examples
22

33
go 1.16

provider/cmd/pulumi-resource-xyz/main.go renamed to provider/cmd/pulumi-resource-tencentcloud/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ package main
1818

1919
import (
2020
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
21-
xyz "github.com/pulumi/pulumi-xyz/provider"
22-
"github.com/pulumi/pulumi-xyz/provider/pkg/version"
21+
tencentcloud "github.com/tencentcloudstack/pulumi-tencentcloud/provider"
22+
"github.com/tencentcloudstack/pulumi-tencentcloud/provider/pkg/version"
2323
)
2424

2525
func main() {
2626
// Modify the path to point to the new provider
27-
tfbridge.Main("xyz", version.Version, xyz.Provider(), pulumiSchema)
27+
tfbridge.Main("tencentcloud", version.Version, tencentcloud.Provider(), pulumiSchema)
2828
}

provider/cmd/pulumi-tfgen-xyz/main.go renamed to provider/cmd/pulumi-tfgen-tencentcloud/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ package main
1616

1717
import (
1818
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"
19-
xyz "github.com/pulumi/pulumi-xyz/provider"
20-
"github.com/pulumi/pulumi-xyz/provider/pkg/version"
19+
tencentcloud "github.com/tencentcloudstack/pulumi-tencentcloud/provider"
20+
"github.com/tencentcloudstack/pulumi-tencentcloud/provider/pkg/version"
2121
)
2222

2323
func main() {
2424
// Modify the path to point to the new provider
25-
tfgen.Main("xyz", version.Version, xyz.Provider())
25+
tfgen.Main("tencentcloud", version.Version, tencentcloud.Provider())
2626
}

0 commit comments

Comments
 (0)