@pulumi/mysql 3.2.13 → 3.2.14
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/database.d.ts +9 -3
- package/database.js +6 -0
- package/database.js.map +1 -1
- package/grant.d.ts +3 -5
- package/grant.js +3 -5
- package/grant.js.map +1 -1
- package/package.json +2 -2
- package/user.d.ts +6 -3
- package/user.js +6 -3
- package/user.js.map +1 -1
- package/userPassword.d.ts +5 -1
- package/userPassword.js +5 -1
- package/userPassword.js.map +1 -1
package/database.d.ts
CHANGED
|
@@ -3,6 +3,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The ``mysql.Database`` resource creates and manages a database on a MySQL
|
|
4
4
|
* server.
|
|
5
5
|
*
|
|
6
|
+
* > **Caution:** The ``mysql.Database`` resource can completely delete your
|
|
7
|
+
* database just as easily as it can create it. To avoid costly accidents,
|
|
8
|
+
* consider setting
|
|
9
|
+
* [``preventDestroy``](https://www.terraform.io/docs/configuration/resources.html#prevent_destroy)
|
|
10
|
+
* on your database resources as an extra safety measure.
|
|
11
|
+
*
|
|
6
12
|
* ## Example Usage
|
|
7
13
|
*
|
|
8
14
|
* ```typescript
|
|
@@ -50,7 +56,7 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
50
56
|
*
|
|
51
57
|
* Note that the defaults for character set and collation above do not respect
|
|
52
58
|
* any defaults set on the MySQL server, so that the configuration can be set
|
|
53
|
-
* appropriately even though
|
|
59
|
+
* appropriately even though Terraform cannot see the server-level defaults. If
|
|
54
60
|
* you wish to use the server's defaults you must consult the server's
|
|
55
61
|
* configuration and then set the ``defaultCharacterSet`` and
|
|
56
62
|
* ``defaultCollation`` to match.
|
|
@@ -89,7 +95,7 @@ export interface DatabaseState {
|
|
|
89
95
|
*
|
|
90
96
|
* Note that the defaults for character set and collation above do not respect
|
|
91
97
|
* any defaults set on the MySQL server, so that the configuration can be set
|
|
92
|
-
* appropriately even though
|
|
98
|
+
* appropriately even though Terraform cannot see the server-level defaults. If
|
|
93
99
|
* you wish to use the server's defaults you must consult the server's
|
|
94
100
|
* configuration and then set the ``defaultCharacterSet`` and
|
|
95
101
|
* ``defaultCollation`` to match.
|
|
@@ -120,7 +126,7 @@ export interface DatabaseArgs {
|
|
|
120
126
|
*
|
|
121
127
|
* Note that the defaults for character set and collation above do not respect
|
|
122
128
|
* any defaults set on the MySQL server, so that the configuration can be set
|
|
123
|
-
* appropriately even though
|
|
129
|
+
* appropriately even though Terraform cannot see the server-level defaults. If
|
|
124
130
|
* you wish to use the server's defaults you must consult the server's
|
|
125
131
|
* configuration and then set the ``defaultCharacterSet`` and
|
|
126
132
|
* ``defaultCollation`` to match.
|
package/database.js
CHANGED
|
@@ -9,6 +9,12 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The ``mysql.Database`` resource creates and manages a database on a MySQL
|
|
10
10
|
* server.
|
|
11
11
|
*
|
|
12
|
+
* > **Caution:** The ``mysql.Database`` resource can completely delete your
|
|
13
|
+
* database just as easily as it can create it. To avoid costly accidents,
|
|
14
|
+
* consider setting
|
|
15
|
+
* [``preventDestroy``](https://www.terraform.io/docs/configuration/resources.html#prevent_destroy)
|
|
16
|
+
* on your database resources as an extra safety measure.
|
|
17
|
+
*
|
|
12
18
|
* ## Example Usage
|
|
13
19
|
*
|
|
14
20
|
* ```typescript
|
package/database.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC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E,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA/EL,4BAgFC;AAlEG,gBAAgB;AACO,qBAAY,GAAG,+BAA+B,CAAC"}
|
package/grant.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The ``mysql.Grant`` resource creates and manages privileges given to
|
|
4
4
|
* a user on a MySQL server.
|
|
5
5
|
*
|
|
6
|
-
* ##
|
|
7
|
-
*
|
|
8
|
-
* ### Granting Privileges to a User
|
|
6
|
+
* ## Granting Privileges to a User
|
|
9
7
|
*
|
|
10
8
|
* ```typescript
|
|
11
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -27,7 +25,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
25
|
* });
|
|
28
26
|
* ```
|
|
29
27
|
*
|
|
30
|
-
*
|
|
28
|
+
* ## Granting Privileges to a Role
|
|
31
29
|
*
|
|
32
30
|
* ```typescript
|
|
33
31
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -44,7 +42,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
44
42
|
* });
|
|
45
43
|
* ```
|
|
46
44
|
*
|
|
47
|
-
*
|
|
45
|
+
* ## Adding a Role to a User
|
|
48
46
|
*
|
|
49
47
|
* ```typescript
|
|
50
48
|
* import * as pulumi from "@pulumi/pulumi";
|
package/grant.js
CHANGED
|
@@ -9,9 +9,7 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The ``mysql.Grant`` resource creates and manages privileges given to
|
|
10
10
|
* a user on a MySQL server.
|
|
11
11
|
*
|
|
12
|
-
* ##
|
|
13
|
-
*
|
|
14
|
-
* ### Granting Privileges to a User
|
|
12
|
+
* ## Granting Privileges to a User
|
|
15
13
|
*
|
|
16
14
|
* ```typescript
|
|
17
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -33,7 +31,7 @@ const utilities = require("./utilities");
|
|
|
33
31
|
* });
|
|
34
32
|
* ```
|
|
35
33
|
*
|
|
36
|
-
*
|
|
34
|
+
* ## Granting Privileges to a Role
|
|
37
35
|
*
|
|
38
36
|
* ```typescript
|
|
39
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -50,7 +48,7 @@ const utilities = require("./utilities");
|
|
|
50
48
|
* });
|
|
51
49
|
* ```
|
|
52
50
|
*
|
|
53
|
-
*
|
|
51
|
+
* ## Adding a Role to a User
|
|
54
52
|
*
|
|
55
53
|
* ```typescript
|
|
56
54
|
* import * as pulumi from "@pulumi/pulumi";
|
package/grant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant.js","sourceRoot":"","sources":["../grant.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"grant.js","sourceRoot":"","sources":["../grant.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IAKD;;;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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA+CD,YAAY,IAAY,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OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAxGL,sBAyGC;AA3FG,gBAAgB;AACO,kBAAY,GAAG,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/mysql",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"description": "A Pulumi package for creating and managing mysql cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "mysql",
|
|
26
|
-
"version": "3.2.
|
|
26
|
+
"version": "3.2.14"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/user.d.ts
CHANGED
|
@@ -3,9 +3,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The ``mysql.User`` resource creates and manages a user on a MySQL
|
|
4
4
|
* server.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* > **Note:** The password for the user is provided in plain text, and is
|
|
7
|
+
* obscured by an unsalted hash in the state
|
|
8
|
+
* [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
9
|
+
* Care is required when using this resource, to avoid disclosing the password.
|
|
7
10
|
*
|
|
8
|
-
*
|
|
11
|
+
* ## Example Usage
|
|
9
12
|
*
|
|
10
13
|
* ```typescript
|
|
11
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -18,7 +21,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
21
|
* });
|
|
19
22
|
* ```
|
|
20
23
|
*
|
|
21
|
-
* ###
|
|
24
|
+
* ### With An Authentication Plugin
|
|
22
25
|
*
|
|
23
26
|
* ```typescript
|
|
24
27
|
* import * as pulumi from "@pulumi/pulumi";
|
package/user.js
CHANGED
|
@@ -9,9 +9,12 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The ``mysql.User`` resource creates and manages a user on a MySQL
|
|
10
10
|
* server.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* > **Note:** The password for the user is provided in plain text, and is
|
|
13
|
+
* obscured by an unsalted hash in the state
|
|
14
|
+
* [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
15
|
+
* Care is required when using this resource, to avoid disclosing the password.
|
|
13
16
|
*
|
|
14
|
-
*
|
|
17
|
+
* ## Example Usage
|
|
15
18
|
*
|
|
16
19
|
* ```typescript
|
|
17
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -24,7 +27,7 @@ const utilities = require("./utilities");
|
|
|
24
27
|
* });
|
|
25
28
|
* ```
|
|
26
29
|
*
|
|
27
|
-
* ###
|
|
30
|
+
* ### With An Authentication Plugin
|
|
28
31
|
*
|
|
29
32
|
* ```typescript
|
|
30
33
|
* import * as pulumi from "@pulumi/pulumi";
|
package/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../user.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../user.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF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,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClH,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;QAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AA5FL,oBA6FC;AA/EG,gBAAgB;AACO,iBAAY,GAAG,uBAAuB,CAAC"}
|
package/userPassword.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
*
|
|
6
6
|
* > **NOTE on MySQL Passwords:** This resource conflicts with the `password`
|
|
7
7
|
* argument for `mysql.User`. This resource uses PGP encryption to avoid
|
|
8
|
-
* storing unencrypted passwords in
|
|
8
|
+
* storing unencrypted passwords in Terraform state.
|
|
9
9
|
*
|
|
10
10
|
* > **NOTE on How Passwords are Created:** This resource **automatically**
|
|
11
11
|
* generates a **random** password. The password will be a random UUID.
|
|
@@ -22,6 +22,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
22
|
* pgpKey: "keybase:joestump",
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
|
+
*
|
|
26
|
+
* You can rotate passwords by running `terraform taint mysql_user_password.jdoe`.
|
|
27
|
+
* The next time Terraform applies a new password will be generated and the user's
|
|
28
|
+
* password will be updated accordingly.
|
|
25
29
|
*/
|
|
26
30
|
export declare class UserPassword extends pulumi.CustomResource {
|
|
27
31
|
/**
|
package/userPassword.js
CHANGED
|
@@ -11,7 +11,7 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* > **NOTE on MySQL Passwords:** This resource conflicts with the `password`
|
|
13
13
|
* argument for `mysql.User`. This resource uses PGP encryption to avoid
|
|
14
|
-
* storing unencrypted passwords in
|
|
14
|
+
* storing unencrypted passwords in Terraform state.
|
|
15
15
|
*
|
|
16
16
|
* > **NOTE on How Passwords are Created:** This resource **automatically**
|
|
17
17
|
* generates a **random** password. The password will be a random UUID.
|
|
@@ -28,6 +28,10 @@ const utilities = require("./utilities");
|
|
|
28
28
|
* pgpKey: "keybase:joestump",
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
|
+
*
|
|
32
|
+
* You can rotate passwords by running `terraform taint mysql_user_password.jdoe`.
|
|
33
|
+
* The next time Terraform applies a new password will be generated and the user's
|
|
34
|
+
* password will be updated accordingly.
|
|
31
35
|
*/
|
|
32
36
|
class UserPassword extends pulumi.CustomResource {
|
|
33
37
|
/**
|
package/userPassword.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userPassword.js","sourceRoot":"","sources":["../userPassword.ts"],"names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