@hot-updater/aws 0.36.6 → 1.0.0-rc.0
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/dist/iac/index.cjs +2670 -824
- package/dist/iac/index.d.cts +15 -1
- package/dist/iac/index.d.mts +15 -1
- package/dist/iac/index.mjs +2669 -825
- package/dist/index.cjs +1916 -1853
- package/dist/index.d.cts +37 -46
- package/dist/index.d.mts +39 -47
- package/dist/index.mjs +1916 -1828
- package/dist/init/index.cjs +13 -13
- package/dist/init/index.d.cts +13 -13
- package/dist/init/index.d.mts +13 -13
- package/dist/init/index.mjs +13 -13
- package/dist/lambda/index.cjs +6468 -4308
- package/dist/lambda/index.d.cts +4 -4
- package/package.json +9 -9
package/dist/init/index.cjs
CHANGED
|
@@ -49,8 +49,18 @@ const AWS_REGION_VALUES = [
|
|
|
49
49
|
];
|
|
50
50
|
const isAwsRegionValue = (value) => value !== void 0 && AWS_REGION_VALUES.some((region) => region === value);
|
|
51
51
|
const initProvider = {
|
|
52
|
-
label: "AWS
|
|
52
|
+
label: "AWS + Lambda@Edge",
|
|
53
53
|
inputs: {
|
|
54
|
+
dynamodbTableName: {
|
|
55
|
+
envKey: "HOT_UPDATER_DYNAMODB_TABLE_NAME",
|
|
56
|
+
help: "DynamoDB metadata table name",
|
|
57
|
+
prompt: {
|
|
58
|
+
defaultValue: "hot-updater-v1",
|
|
59
|
+
message: "Enter the DynamoDB table name",
|
|
60
|
+
placeholder: "hot-updater-v1",
|
|
61
|
+
type: "text"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
54
64
|
authMode: {
|
|
55
65
|
envKey: "HOT_UPDATER_AWS_AUTH_MODE",
|
|
56
66
|
help: "AWS authentication mode: local-session, shared-profile, sso, or account",
|
|
@@ -118,9 +128,9 @@ const initProvider = {
|
|
|
118
128
|
envKey: "HOT_UPDATER_AWS_LAMBDA_NAME",
|
|
119
129
|
help: "Lambda@Edge function name",
|
|
120
130
|
prompt: {
|
|
121
|
-
defaultValue: "hot-updater-edge",
|
|
131
|
+
defaultValue: "hot-updater-v1-edge",
|
|
122
132
|
message: "Enter the name of the Lambda@Edge function",
|
|
123
|
-
placeholder: "hot-updater-edge",
|
|
133
|
+
placeholder: "hot-updater-v1-edge",
|
|
124
134
|
type: "text"
|
|
125
135
|
}
|
|
126
136
|
},
|
|
@@ -128,16 +138,6 @@ const initProvider = {
|
|
|
128
138
|
envKey: "HOT_UPDATER_CLOUDFRONT_DISTRIBUTION_ID",
|
|
129
139
|
help: "Existing CloudFront distribution ID",
|
|
130
140
|
optional: true
|
|
131
|
-
},
|
|
132
|
-
migrationApproved: {
|
|
133
|
-
envKey: "HOT_UPDATER_AWS_MIGRATION_APPROVED",
|
|
134
|
-
help: "Allow pending Hot Updater S3 migrations (true)",
|
|
135
|
-
optional: true,
|
|
136
|
-
prompt: {
|
|
137
|
-
message: "Apply pending Hot Updater S3 migrations during init and future infrastructure updates?",
|
|
138
|
-
type: "confirm"
|
|
139
|
-
},
|
|
140
|
-
validate: (value) => value === "true"
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
};
|
package/dist/init/index.d.cts
CHANGED
|
@@ -6,8 +6,18 @@ declare const AWS_REGION_VALUES: readonly ["af-south-1", "ap-east-1", "ap-east-2
|
|
|
6
6
|
type AwsRegionValue = (typeof AWS_REGION_VALUES)[number];
|
|
7
7
|
declare const isAwsRegionValue: (value: string | undefined) => value is AwsRegionValue;
|
|
8
8
|
declare const initProvider: {
|
|
9
|
-
readonly label: "AWS
|
|
9
|
+
readonly label: "AWS + Lambda@Edge";
|
|
10
10
|
readonly inputs: {
|
|
11
|
+
readonly dynamodbTableName: {
|
|
12
|
+
readonly envKey: "HOT_UPDATER_DYNAMODB_TABLE_NAME";
|
|
13
|
+
readonly help: "DynamoDB metadata table name";
|
|
14
|
+
readonly prompt: {
|
|
15
|
+
readonly defaultValue: "hot-updater-v1";
|
|
16
|
+
readonly message: "Enter the DynamoDB table name";
|
|
17
|
+
readonly placeholder: "hot-updater-v1";
|
|
18
|
+
readonly type: "text";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
11
21
|
readonly authMode: {
|
|
12
22
|
readonly envKey: "HOT_UPDATER_AWS_AUTH_MODE";
|
|
13
23
|
readonly help: "AWS authentication mode: local-session, shared-profile, sso, or account";
|
|
@@ -75,9 +85,9 @@ declare const initProvider: {
|
|
|
75
85
|
readonly envKey: "HOT_UPDATER_AWS_LAMBDA_NAME";
|
|
76
86
|
readonly help: "Lambda@Edge function name";
|
|
77
87
|
readonly prompt: {
|
|
78
|
-
readonly defaultValue: "hot-updater-edge";
|
|
88
|
+
readonly defaultValue: "hot-updater-v1-edge";
|
|
79
89
|
readonly message: "Enter the name of the Lambda@Edge function";
|
|
80
|
-
readonly placeholder: "hot-updater-edge";
|
|
90
|
+
readonly placeholder: "hot-updater-v1-edge";
|
|
81
91
|
readonly type: "text";
|
|
82
92
|
};
|
|
83
93
|
};
|
|
@@ -86,16 +96,6 @@ declare const initProvider: {
|
|
|
86
96
|
readonly help: "Existing CloudFront distribution ID";
|
|
87
97
|
readonly optional: true;
|
|
88
98
|
};
|
|
89
|
-
readonly migrationApproved: {
|
|
90
|
-
readonly envKey: "HOT_UPDATER_AWS_MIGRATION_APPROVED";
|
|
91
|
-
readonly help: "Allow pending Hot Updater S3 migrations (true)";
|
|
92
|
-
readonly optional: true;
|
|
93
|
-
readonly prompt: {
|
|
94
|
-
readonly message: "Apply pending Hot Updater S3 migrations during init and future infrastructure updates?";
|
|
95
|
-
readonly type: "confirm";
|
|
96
|
-
};
|
|
97
|
-
readonly validate: (value: string | undefined) => value is "true";
|
|
98
|
-
};
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
//#endregion
|
package/dist/init/index.d.mts
CHANGED
|
@@ -6,8 +6,18 @@ declare const AWS_REGION_VALUES: readonly ["af-south-1", "ap-east-1", "ap-east-2
|
|
|
6
6
|
type AwsRegionValue = (typeof AWS_REGION_VALUES)[number];
|
|
7
7
|
declare const isAwsRegionValue: (value: string | undefined) => value is AwsRegionValue;
|
|
8
8
|
declare const initProvider: {
|
|
9
|
-
readonly label: "AWS
|
|
9
|
+
readonly label: "AWS + Lambda@Edge";
|
|
10
10
|
readonly inputs: {
|
|
11
|
+
readonly dynamodbTableName: {
|
|
12
|
+
readonly envKey: "HOT_UPDATER_DYNAMODB_TABLE_NAME";
|
|
13
|
+
readonly help: "DynamoDB metadata table name";
|
|
14
|
+
readonly prompt: {
|
|
15
|
+
readonly defaultValue: "hot-updater-v1";
|
|
16
|
+
readonly message: "Enter the DynamoDB table name";
|
|
17
|
+
readonly placeholder: "hot-updater-v1";
|
|
18
|
+
readonly type: "text";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
11
21
|
readonly authMode: {
|
|
12
22
|
readonly envKey: "HOT_UPDATER_AWS_AUTH_MODE";
|
|
13
23
|
readonly help: "AWS authentication mode: local-session, shared-profile, sso, or account";
|
|
@@ -75,9 +85,9 @@ declare const initProvider: {
|
|
|
75
85
|
readonly envKey: "HOT_UPDATER_AWS_LAMBDA_NAME";
|
|
76
86
|
readonly help: "Lambda@Edge function name";
|
|
77
87
|
readonly prompt: {
|
|
78
|
-
readonly defaultValue: "hot-updater-edge";
|
|
88
|
+
readonly defaultValue: "hot-updater-v1-edge";
|
|
79
89
|
readonly message: "Enter the name of the Lambda@Edge function";
|
|
80
|
-
readonly placeholder: "hot-updater-edge";
|
|
90
|
+
readonly placeholder: "hot-updater-v1-edge";
|
|
81
91
|
readonly type: "text";
|
|
82
92
|
};
|
|
83
93
|
};
|
|
@@ -86,16 +96,6 @@ declare const initProvider: {
|
|
|
86
96
|
readonly help: "Existing CloudFront distribution ID";
|
|
87
97
|
readonly optional: true;
|
|
88
98
|
};
|
|
89
|
-
readonly migrationApproved: {
|
|
90
|
-
readonly envKey: "HOT_UPDATER_AWS_MIGRATION_APPROVED";
|
|
91
|
-
readonly help: "Allow pending Hot Updater S3 migrations (true)";
|
|
92
|
-
readonly optional: true;
|
|
93
|
-
readonly prompt: {
|
|
94
|
-
readonly message: "Apply pending Hot Updater S3 migrations during init and future infrastructure updates?";
|
|
95
|
-
readonly type: "confirm";
|
|
96
|
-
};
|
|
97
|
-
readonly validate: (value: string | undefined) => value is "true";
|
|
98
|
-
};
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
//#endregion
|
package/dist/init/index.mjs
CHANGED
|
@@ -48,8 +48,18 @@ const AWS_REGION_VALUES = [
|
|
|
48
48
|
];
|
|
49
49
|
const isAwsRegionValue = (value) => value !== void 0 && AWS_REGION_VALUES.some((region) => region === value);
|
|
50
50
|
const initProvider = {
|
|
51
|
-
label: "AWS
|
|
51
|
+
label: "AWS + Lambda@Edge",
|
|
52
52
|
inputs: {
|
|
53
|
+
dynamodbTableName: {
|
|
54
|
+
envKey: "HOT_UPDATER_DYNAMODB_TABLE_NAME",
|
|
55
|
+
help: "DynamoDB metadata table name",
|
|
56
|
+
prompt: {
|
|
57
|
+
defaultValue: "hot-updater-v1",
|
|
58
|
+
message: "Enter the DynamoDB table name",
|
|
59
|
+
placeholder: "hot-updater-v1",
|
|
60
|
+
type: "text"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
53
63
|
authMode: {
|
|
54
64
|
envKey: "HOT_UPDATER_AWS_AUTH_MODE",
|
|
55
65
|
help: "AWS authentication mode: local-session, shared-profile, sso, or account",
|
|
@@ -117,9 +127,9 @@ const initProvider = {
|
|
|
117
127
|
envKey: "HOT_UPDATER_AWS_LAMBDA_NAME",
|
|
118
128
|
help: "Lambda@Edge function name",
|
|
119
129
|
prompt: {
|
|
120
|
-
defaultValue: "hot-updater-edge",
|
|
130
|
+
defaultValue: "hot-updater-v1-edge",
|
|
121
131
|
message: "Enter the name of the Lambda@Edge function",
|
|
122
|
-
placeholder: "hot-updater-edge",
|
|
132
|
+
placeholder: "hot-updater-v1-edge",
|
|
123
133
|
type: "text"
|
|
124
134
|
}
|
|
125
135
|
},
|
|
@@ -127,16 +137,6 @@ const initProvider = {
|
|
|
127
137
|
envKey: "HOT_UPDATER_CLOUDFRONT_DISTRIBUTION_ID",
|
|
128
138
|
help: "Existing CloudFront distribution ID",
|
|
129
139
|
optional: true
|
|
130
|
-
},
|
|
131
|
-
migrationApproved: {
|
|
132
|
-
envKey: "HOT_UPDATER_AWS_MIGRATION_APPROVED",
|
|
133
|
-
help: "Allow pending Hot Updater S3 migrations (true)",
|
|
134
|
-
optional: true,
|
|
135
|
-
prompt: {
|
|
136
|
-
message: "Apply pending Hot Updater S3 migrations during init and future infrastructure updates?",
|
|
137
|
-
type: "confirm"
|
|
138
|
-
},
|
|
139
|
-
validate: (value) => value === "true"
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|