@hasna/uptime 0.1.11 → 0.1.13
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/CHANGELOG.md +29 -0
- package/dist/api.js +474 -138
- package/dist/checks.d.ts +37 -5
- package/dist/checks.d.ts.map +1 -1
- package/dist/checks.js +471 -4
- package/dist/cli/index.js +473 -140
- package/dist/cloud-plan.js +2 -2
- package/dist/imports.js +100 -17
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +480 -140
- package/dist/mcp/index.js +471 -138
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +474 -138
- package/dist/store.js +100 -17
- package/dist/target-policy.d.ts +7 -0
- package/dist/target-policy.d.ts.map +1 -1
- package/dist/types.d.ts +26 -1
- package/dist/types.d.ts.map +1 -1
- package/docs/aws-deployment-runbook.md +15 -9
- package/infra/aws/README.md +22 -2
- package/infra/aws/main.tf +288 -0
- package/infra/aws/outputs.tf +7 -0
- package/infra/aws/terraform.tfvars.example +4 -1
- package/infra/aws/variables.tf +43 -1
- package/package.json +1 -1
package/infra/aws/variables.tf
CHANGED
|
@@ -116,7 +116,7 @@ variable "container_image" {
|
|
|
116
116
|
variable "runtime_package_version" {
|
|
117
117
|
description = "Published @hasna/uptime package version that CodeBuild should build into the ECR image."
|
|
118
118
|
type = string
|
|
119
|
-
default = "0.1.
|
|
119
|
+
default = "0.1.13"
|
|
120
120
|
|
|
121
121
|
validation {
|
|
122
122
|
condition = can(regex("^[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z.-]+)?$", var.runtime_package_version))
|
|
@@ -237,3 +237,45 @@ variable "budget_alert_email_addresses" {
|
|
|
237
237
|
type = list(string)
|
|
238
238
|
default = []
|
|
239
239
|
}
|
|
240
|
+
|
|
241
|
+
variable "enable_private_vpc_endpoints" {
|
|
242
|
+
description = "Create private VPC endpoints for ECS access to AWS APIs. Requires private subnet ids; S3 gateway endpoint also requires private_route_table_ids."
|
|
243
|
+
type = bool
|
|
244
|
+
default = false
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
variable "interface_vpc_endpoint_services" {
|
|
248
|
+
description = "Regional interface endpoint service short names to create when enable_private_vpc_endpoints is true."
|
|
249
|
+
type = list(string)
|
|
250
|
+
default = ["ecr.api", "ecr.dkr", "logs", "secretsmanager"]
|
|
251
|
+
|
|
252
|
+
validation {
|
|
253
|
+
condition = alltrue([
|
|
254
|
+
for service in var.interface_vpc_endpoint_services : contains(["ecr.api", "ecr.dkr", "logs", "secretsmanager", "sts", "ssm", "kms"], service)
|
|
255
|
+
])
|
|
256
|
+
error_message = "interface_vpc_endpoint_services must contain only approved AWS service short names."
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
variable "additional_vpc_endpoint_source_security_group_ids" {
|
|
261
|
+
description = "Additional source security groups allowed to use Open Uptime interface VPC endpoints in a shared VPC. Keep empty for dedicated Open Uptime subnets."
|
|
262
|
+
type = list(string)
|
|
263
|
+
default = []
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
variable "gateway_vpc_endpoint_services" {
|
|
267
|
+
description = "Regional gateway endpoint service short names to create when enable_private_vpc_endpoints is true."
|
|
268
|
+
type = list(string)
|
|
269
|
+
default = ["s3"]
|
|
270
|
+
|
|
271
|
+
validation {
|
|
272
|
+
condition = alltrue([for service in var.gateway_vpc_endpoint_services : contains(["s3"], service)])
|
|
273
|
+
error_message = "gateway_vpc_endpoint_services currently supports only s3."
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
variable "private_route_table_ids" {
|
|
278
|
+
description = "Private route table ids for gateway VPC endpoints such as S3. Leave empty to skip gateway endpoint creation."
|
|
279
|
+
type = list(string)
|
|
280
|
+
default = []
|
|
281
|
+
}
|
package/package.json
CHANGED