@volcengine/pulumi-volcenginecc 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/config/vars.d.ts +9 -0
- package/config/vars.js +14 -0
- package/config/vars.js.map +1 -1
- package/package.json +1 -1
- package/provider.d.ts +18 -0
- package/provider.js +6 -4
- package/provider.js.map +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,8 @@ provider configuration:
|
|
|
47
47
|
|
|
48
48
|
- `accessKey` (String) The Access Key for Volcengine Provider. It must be provided, but it can also be sourced from the `VOLCENGINE_ACCESS_KEY` environment variable
|
|
49
49
|
- `secretKey` (String) he Secret Key for Volcengine Provider. It must be provided, but it can also be sourced from the `VOLCENGINE_SECRET_KEY` environment variable
|
|
50
|
+
- `profile` (String) The Profile for Volcengine Provider. It can be used as an alternative authentication method to AK/SK, and can also be sourced from the `VOLCENGINE_PROFILE` environment variable
|
|
51
|
+
- `file_path` (String) The File Path for Volcengine Provider. It specifies the path to the profile configuration file. If not specified, the default path `~/.volcengine` will be used, and can also be sourced from the `VOLCENGINE_FILE_PATH` environment variable
|
|
50
52
|
- `assumeRole` (Attributes) An `assume_role` block (documented below). Only one `assume_role` block may be in the configuration. (see [below for nested schema](#nestedatt--assume_role))
|
|
51
53
|
- `customerHeaders` (String) CUSTOMER HEADERS for Volcengine Provider. The customer_headers field uses commas (,) to separate multiple headers, and colons (:) to separate each header key from its corresponding value.
|
|
52
54
|
- `disableSsl` (Boolean) Disable SSL for Volcengine Provider
|
package/config/vars.d.ts
CHANGED
|
@@ -21,6 +21,15 @@ export declare const disableSsl: boolean | undefined;
|
|
|
21
21
|
* An `endpoints` block (documented below). Only one `endpoints` block may be in the configuration.
|
|
22
22
|
*/
|
|
23
23
|
export declare const endpoints: outputs.config.Endpoints | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The file path for Volcengine Provider configuration. It can be sourced from the `VOLCENGINE_FILE_PATH` environment
|
|
26
|
+
* variable
|
|
27
|
+
*/
|
|
28
|
+
export declare const filePath: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The profile for Volcengine Provider. It can be sourced from the `VOLCENGINE_PROFILE` environment variable
|
|
31
|
+
*/
|
|
32
|
+
export declare const profile: string | undefined;
|
|
24
33
|
/**
|
|
25
34
|
* PROXY URL for Volcengine Provider
|
|
26
35
|
*/
|
package/config/vars.js
CHANGED
|
@@ -38,6 +38,20 @@ Object.defineProperty(exports, "endpoints", {
|
|
|
38
38
|
},
|
|
39
39
|
enumerable: true,
|
|
40
40
|
});
|
|
41
|
+
Object.defineProperty(exports, "filePath", {
|
|
42
|
+
get() {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = __config.get("filePath")) !== null && _a !== void 0 ? _a : utilities.getEnv("VOLCENGINE_FILE_PATH");
|
|
45
|
+
},
|
|
46
|
+
enumerable: true,
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "profile", {
|
|
49
|
+
get() {
|
|
50
|
+
var _a;
|
|
51
|
+
return (_a = __config.get("profile")) !== null && _a !== void 0 ? _a : utilities.getEnv("VOLCENGINE_PROFILE");
|
|
52
|
+
},
|
|
53
|
+
enumerable: true,
|
|
54
|
+
});
|
|
41
55
|
Object.defineProperty(exports, "proxyUrl", {
|
|
42
56
|
get() {
|
|
43
57
|
var _a;
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAOnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,S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E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAClF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/provider.d.ts
CHANGED
|
@@ -22,6 +22,15 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
22
22
|
* colons (:) to separate each header key from its corresponding value.
|
|
23
23
|
*/
|
|
24
24
|
readonly customerHeaders: pulumi.Output<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* The file path for Volcengine Provider configuration. It can be sourced from the `VOLCENGINE_FILE_PATH` environment
|
|
27
|
+
* variable
|
|
28
|
+
*/
|
|
29
|
+
readonly filePath: pulumi.Output<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* The profile for Volcengine Provider. It can be sourced from the `VOLCENGINE_PROFILE` environment variable
|
|
32
|
+
*/
|
|
33
|
+
readonly profile: pulumi.Output<string | undefined>;
|
|
25
34
|
/**
|
|
26
35
|
* PROXY URL for Volcengine Provider
|
|
27
36
|
*/
|
|
@@ -75,6 +84,15 @@ export interface ProviderArgs {
|
|
|
75
84
|
* An `endpoints` block (documented below). Only one `endpoints` block may be in the configuration.
|
|
76
85
|
*/
|
|
77
86
|
endpoints?: pulumi.Input<inputs.ProviderEndpoints>;
|
|
87
|
+
/**
|
|
88
|
+
* The file path for Volcengine Provider configuration. It can be sourced from the `VOLCENGINE_FILE_PATH` environment
|
|
89
|
+
* variable
|
|
90
|
+
*/
|
|
91
|
+
filePath?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The profile for Volcengine Provider. It can be sourced from the `VOLCENGINE_PROFILE` environment variable
|
|
94
|
+
*/
|
|
95
|
+
profile?: pulumi.Input<string>;
|
|
78
96
|
/**
|
|
79
97
|
* PROXY URL for Volcengine Provider
|
|
80
98
|
*/
|
package/provider.js
CHANGED
|
@@ -30,7 +30,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
30
30
|
* @param opts A bag of options that control this resource's behavior.
|
|
31
31
|
*/
|
|
32
32
|
constructor(name, args, opts) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f;
|
|
33
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
34
34
|
let resourceInputs = {};
|
|
35
35
|
opts = opts || {};
|
|
36
36
|
{
|
|
@@ -39,9 +39,11 @@ class Provider extends pulumi.ProviderResource {
|
|
|
39
39
|
resourceInputs["customerHeaders"] = (_b = (args ? args.customerHeaders : undefined)) !== null && _b !== void 0 ? _b : utilities.getEnv("VOLCENGINE_CUSTOMER_HEADERS");
|
|
40
40
|
resourceInputs["disableSsl"] = pulumi.output((_c = (args ? args.disableSsl : undefined)) !== null && _c !== void 0 ? _c : utilities.getEnvBoolean("VOLCENGINE_DISABLE_SSL")).apply(JSON.stringify);
|
|
41
41
|
resourceInputs["endpoints"] = pulumi.output(args ? args.endpoints : undefined).apply(JSON.stringify);
|
|
42
|
-
resourceInputs["
|
|
43
|
-
resourceInputs["
|
|
44
|
-
resourceInputs["
|
|
42
|
+
resourceInputs["filePath"] = (_d = (args ? args.filePath : undefined)) !== null && _d !== void 0 ? _d : utilities.getEnv("VOLCENGINE_FILE_PATH");
|
|
43
|
+
resourceInputs["profile"] = (_e = (args ? args.profile : undefined)) !== null && _e !== void 0 ? _e : utilities.getEnv("VOLCENGINE_PROFILE");
|
|
44
|
+
resourceInputs["proxyUrl"] = (_f = (args ? args.proxyUrl : undefined)) !== null && _f !== void 0 ? _f : utilities.getEnv("VOLCENGINE_PROXY_URL");
|
|
45
|
+
resourceInputs["region"] = (_g = (args ? args.region : undefined)) !== null && _g !== void 0 ? _g : utilities.getEnv("VOLCENGINE_REGION");
|
|
46
|
+
resourceInputs["secretKey"] = (_h = (args ? args.secretKey : undefined)) !== null && _h !== void 0 ? _h : utilities.getEnv("VOLCENGINE_SECRET_KEY");
|
|
45
47
|
}
|
|
46
48
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
47
49
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAoCD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAA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