Skip to content

Commit 79c53b4

Browse files
authored
fix env variable name of tencentcloud secret id (#44)
In the Go code, `tencentcloud secret id` is written as `TENCENTCLOUD_SECRET_ID` , but in the documentation and examples, it is written as `TENCENTCLOUD_ACCESS_KEY` .
1 parent f3b97fc commit 79c53b4

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

builder/tencentcloud/cvm/access_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var ValidRegions = []Region{
4646

4747
type TencentCloudAccessConfig struct {
4848
// Tencentcloud secret id. You should set it directly,
49-
// or set the TENCENTCLOUD_ACCESS_KEY environment variable.
49+
// or set the TENCENTCLOUD_SECRET_ID environment variable.
5050
SecretId string `mapstructure:"secret_id" required:"true"`
5151
// Tencentcloud secret key. You should set it directly,
5252
// or set the TENCENTCLOUD_SECRET_KEY environment variable.

builder/tencentcloud/examples/basic-with-data-disk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"secret_id": "{{env `TENCENTCLOUD_ACCESS_KEY`}}",
3+
"secret_id": "{{env `TENCENTCLOUD_SECRET_ID`}}",
44
"secret_key": "{{env `TENCENTCLOUD_SECRET_KEY`}}"
55
},
66
"builders": [

builder/tencentcloud/examples/basic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"secret_id": "{{env `TENCENTCLOUD_ACCESS_KEY`}}",
3+
"secret_id": "{{env `TENCENTCLOUD_SECRET_ID`}}",
44
"secret_key": "{{env `TENCENTCLOUD_SECRET_KEY`}}"
55
},
66
"builders": [

builder/tencentcloud/examples/centos.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"secret_id": "{{env `TENCENTCLOUD_ACCESS_KEY`}}",
3+
"secret_id": "{{env `TENCENTCLOUD_SECRET_ID`}}",
44
"secret_key": "{{env `TENCENTCLOUD_SECRET_KEY`}}"
55
},
66
"builders": [

docs-partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Code generated from the comments of the TencentCloudAccessConfig struct in builder/tencentcloud/cvm/access_config.go; DO NOT EDIT MANUALLY -->
22

33
- `secret_id` (string) - Tencentcloud secret id. You should set it directly,
4-
or set the TENCENTCLOUD_ACCESS_KEY environment variable.
4+
or set the TENCENTCLOUD_SECRET_ID environment variable.
55

66
- `secret_key` (string) - Tencentcloud secret key. You should set it directly,
77
or set the TENCENTCLOUD_SECRET_KEY environment variable.

docs/builders/cvm.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a [communicator](/docs/templates/legacy_json_templates/communicator) can be conf
2323
### Required:
2424

2525
- `secret_id` (string) - Tencentcloud secret id. You should set it directly,
26-
or set the `TENCENTCLOUD_ACCESS_KEY` environment variable.
26+
or set the `TENCENTCLOUD_SECRET_ID` environment variable.
2727

2828
- `secret_key` (string) - Tencentcloud secret key. You should set it directly,
2929
or set the `TENCENTCLOUD_SECRET_KEY` environment variable.
@@ -151,7 +151,7 @@ Here is a basic example for Tencentcloud.
151151
```json
152152
{
153153
"variables": {
154-
"secret_id": "{{env `TENCENTCLOUD_ACCESS_KEY`}}",
154+
"secret_id": "{{env `TENCENTCLOUD_SECRET_ID`}}",
155155
"secret_key": "{{env `TENCENTCLOUD_SECRET_KEY`}}"
156156
},
157157
"builders": [

example/build.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variable "secret_id" {
22
type = string
3-
default = "${env("TENCENTCLOUD_ACCESS_KEY")}"
3+
default = "${env("TENCENTCLOUD_SECRET_ID")}"
44
}
55

66
variable "secret_key" {

0 commit comments

Comments
 (0)