Skip to content

Commit c8ee8f1

Browse files
author
Christopher Brandt
committed
fix: initial release
1 parent 911a0e7 commit c8ee8f1

File tree

6 files changed

+10923
-126
lines changed

6 files changed

+10923
-126
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.

.releaserc.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
11
---
22
branches:
3+
- name: alpha
4+
channel: alpha
5+
prerelease: true
6+
- name: beta
7+
channel: beta
8+
prerelease: true
39
- name: main
10+
411
plugins:
512
- "@semantic-release/commit-analyzer"
613
- "@semantic-release/release-notes-generator"
714
- - "@semantic-release/changelog"
815
- changelogFile: CHANGELOG.md
916
- - "@semantic-release/git"
1017
- assets:
11-
- CHANGELOG.md
12-
- package.json
18+
- CHANGELOG.md
19+
- package.json
1320
- - "@semantic-release/npm"
1421
- npmPublish: true
15-
- "@semantic-release/gitlab"
22+
- "@semantic-release/github"
1623
verifyConditions:
1724
- "@semantic-release/changelog"
18-
- "@semantic-release/gitlab"
25+
- "@semantic-release/github"
1926
- "@semantic-release/npm"
2027
prepare:
2128
- "@semantic-release/changelog"
2229
- "@semantic-release/npm"
2330
- - "@semantic-release/git"
2431
- message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
2532
publish:
26-
- "@semantic-release/gitlab"
33+
- "@semantic-release/github"
2734
- "@semantic-release/npm"
2835
success: false
2936
fail: false
30-
tagFormat: "${version}"
37+
tagFormat: "${version}"

README.md

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,45 @@
1-
CloudGraph GCP Provider
2-
=======================
1+
# CloudGraph Tencent Provider
32

4-
Scan cloud infrastructure via the [GCP SDK ](https://github.com/google/google-api-javascript-client)
3+
Use the CloudGraph Tencent Provider to scan and normalize cloud infrastructure using the [Tencent Cloud SDK](https://intl.cloud.tencent.com/document/product/583/19694)
54

6-
# Development
5+
<!-- toc -->
76

8-
Install all the dependencies:
9-
```
10-
yarn
11-
```
7+
- [CloudGraph Tencent Provider](#cloudgraph-tencent-provider)
8+
- [Install](#install)
9+
- [Authentication](#authentication)
10+
- [Multi Account](#multi-account)
11+
- [Configuration](#configuration)
12+
- [Supported Services](#supported-services)
13+
<!-- tocstop -->
14+
15+
# Install
16+
17+
Install the Tencent provider in CloudGraph
1218

13-
Generate types and compile:
1419
```
15-
yarn build
20+
cg init tencent
1621
```
1722

18-
## Testing
19-
<!-- testing -->
23+
# Authentication
24+
25+
26+
# Multi Account
27+
28+
29+
# Configuration
30+
31+
CloudGraph creates a configuration file at:
32+
33+
- UNIX: `~/.config/cloudgraph/.cloud-graphrc.json`
34+
- Windows: `%LOCALAPPDATA%\cloudgraph/.cloud-graphrc.json`
35+
36+
NOTE: CloudGraph will output where it stores the configuration file and provider data as part of the `cg init` command
37+
38+
CloudGraph will generate this configuration file when you run `cg init tencent`. You may update it manually or by running `cg init tencent` again.
39+
40+
CloudGraph Tencent Provider will ask you what regions you would like to crawl and will by default crawl for **all** supported resources in **selected** regions in the **default** account. You can update the `regions` or `resources` fields in the `cloud-graphrc.json` file to change this behavior. You can also select which `resources` to crawl in the `cg init tencent` command by passing the the `-r` flag: `cg init tencent -r`
41+
42+
# Supported Services
2043

21-
<!-- testingstop -->
44+
| Service | Relations |
45+
| ------------------- | ------------------- |

codegen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ generates:
66
plugins:
77
- "typescript"
88
config:
9-
skipTypename: true
9+
skipTypename: true

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "@cloudgraph/cg-provider-gcp",
2+
"name": "@cloudgraph/cg-provider-tencent",
33
"version": "0.0.0",
4-
"description": "CloudGraph provider plugin for GCP used to fetch GCP cloud data.",
4+
"description": "CloudGraph provider plugin for Tencent Cloud used to fetch Tencent Cloud data.",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org/",
77
"tag": "latest",
88
"access": "public"
99
},
1010
"homepage": "https://www.cloudgraph.dev/",
11-
"repository": "github:cloudgraphdev/cloudgraph-provider-gcp",
12-
"bugs": "https://github.com/cloudgraphdev/cloudgraph-provider-gcp/issues",
11+
"repository": "github:cloudgraphdev/cloudgraph-provider-tencent",
12+
"bugs": "https://github.com/cloudgraphdev/cloudgraph-provider-tencent/issues",
1313
"main": "dist/services/index.js",
1414
"types": "dist/services/index.d.ts",
1515
"author": "AutoCloud",
@@ -32,21 +32,21 @@
3232
"terraform:cleanup": "rimraf ./tests/terraform/{.terraform,.terraform.lock.hcl,tfplan} ./tests/terraform/*.{tfstate,tfplan,backup}"
3333
},
3434
"dependencies": {
35-
"@cloudgraph/sdk": "^0.3.4",
35+
"@cloudgraph/sdk": "^0.18.1",
3636
"@graphql-tools/load-files": "^6.3.2",
3737
"@graphql-tools/merge": "^8.0.1",
3838
"@sentry/node": "^6.7.2",
3939
"chalk": "^4.1.2",
4040
"dotenv": "^10.0.0",
41-
"graphql": "^15.5.1",
41+
"graphql": "^16.2.0",
4242
"lodash": "^4.17.21",
4343
"pino": "^6.11.3",
4444
"typescript": "^4.3.5"
4545
},
4646
"devDependencies": {
4747
"@autocloud/eslint-config": "^0.1.0",
48-
"@graphql-codegen/cli": "1.21.7",
49-
"@graphql-codegen/typescript": "1.23.0",
48+
"@graphql-codegen/cli": "2.4.0",
49+
"@graphql-codegen/typescript": "2.4.2",
5050
"@semantic-release/changelog": "^5.0.1",
5151
"@semantic-release/git": "^9.0.0",
5252
"@semantic-release/gitlab": "^6.2.2",

0 commit comments

Comments
 (0)