Support custom database user and database names properly (#240)
This commit is contained in:
1 parent
1bfc9a14be
commit
b4f2ffbf98
15 files changed
+281
-266
No files matched your search
@@ -4,23 +4,23 @@ variable "iam_role_arn" {
|
||||
}
|
||||
|
||||
variable "sts_external_id" {
|
||||
type = string
|
||||
type = string
|
||||
description = "Optional unique identifier that can be used by the principal assuming the role to assert its identity."
|
||||
default = ""
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "s3_bucket_name" {
|
||||
type = string
|
||||
type = string
|
||||
description = "The S3 bucket for carve results to be written to"
|
||||
}
|
||||
|
||||
variable "s3_bucket_region" {
|
||||
type = string
|
||||
type = string
|
||||
description = "The S3 bucket region"
|
||||
}
|
||||
|
||||
variable "s3_carve_prefix" {
|
||||
type = string
|
||||
type = string
|
||||
description = "The S3 object prefix to use when storing carve results"
|
||||
default = ""
|
||||
default = ""
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
variable "bucket_name" {
|
||||
type = string
|
||||
type = string
|
||||
description = "The name of the osquery carve results bucket"
|
||||
}
|
||||
|
||||
variable "fleet_iam_role_arn" {
|
||||
type = string
|
||||
type = string
|
||||
description = "The IAM role ARN of the Fleet service"
|
||||
}
|
||||
|
||||
|
||||
@@ -8,5 +8,5 @@ output "s3_destination" {
|
||||
|
||||
output "log_destinations" {
|
||||
description = "Map of Firehose delivery streams' names."
|
||||
value = { for key, stream in aws_kinesis_firehose_delivery_stream.fleet_log_destinations : key => stream.name }
|
||||
value = { for key, stream in aws_kinesis_firehose_delivery_stream.fleet_log_destinations : key => stream.name }
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
variable "prefix" {
|
||||
type = string
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
output "extra_secrets" {
|
||||
value = merge(var.enable_apple_mdm == false ? {} : {
|
||||
FLEET_MDM_APPLE_SCEP_CERT_BYTES = "${aws_secretsmanager_secret.scep.arn}:FLEET_MDM_APPLE_SCEP_CERT_BYTES::"
|
||||
FLEET_MDM_APPLE_SCEP_KEY_BYTES = "${aws_secretsmanager_secret.scep.arn}:FLEET_MDM_APPLE_SCEP_KEY_BYTES::"
|
||||
FLEET_MDM_APPLE_SCEP_CHALLENGE = "${aws_secretsmanager_secret.scep.arn}:FLEET_MDM_APPLE_SCEP_CHALLENGE::"
|
||||
FLEET_MDM_APPLE_APNS_CERT_BYTES = "${aws_secretsmanager_secret.apn[0].arn}:FLEET_MDM_APPLE_APNS_CERT_BYTES::"
|
||||
FLEET_MDM_APPLE_APNS_KEY_BYTES = "${aws_secretsmanager_secret.apn[0].arn}:FLEET_MDM_APPLE_APNS_KEY_BYTES::"
|
||||
FLEET_MDM_APPLE_SCEP_CERT_BYTES = "${aws_secretsmanager_secret.scep.arn}:FLEET_MDM_APPLE_SCEP_CERT_BYTES::"
|
||||
FLEET_MDM_APPLE_SCEP_KEY_BYTES = "${aws_secretsmanager_secret.scep.arn}:FLEET_MDM_APPLE_SCEP_KEY_BYTES::"
|
||||
FLEET_MDM_APPLE_SCEP_CHALLENGE = "${aws_secretsmanager_secret.scep.arn}:FLEET_MDM_APPLE_SCEP_CHALLENGE::"
|
||||
FLEET_MDM_APPLE_APNS_CERT_BYTES = "${aws_secretsmanager_secret.apn[0].arn}:FLEET_MDM_APPLE_APNS_CERT_BYTES::"
|
||||
FLEET_MDM_APPLE_APNS_KEY_BYTES = "${aws_secretsmanager_secret.apn[0].arn}:FLEET_MDM_APPLE_APNS_KEY_BYTES::"
|
||||
}, var.abm_secret_name == null || var.enable_apple_mdm == false ? {} : {
|
||||
FLEET_MDM_APPLE_BM_SERVER_TOKEN_BYTES = "${aws_secretsmanager_secret.abm[0].arn}:FLEET_MDM_APPLE_BM_SERVER_TOKEN_BYTES::"
|
||||
FLEET_MDM_APPLE_BM_CERT_BYTES = "${aws_secretsmanager_secret.abm[0].arn}:FLEET_MDM_APPLE_BM_CERT_BYTES::"
|
||||
|
||||
@@ -172,11 +172,11 @@ resource "aws_ecs_task_definition" "mdmproxy" {
|
||||
|
||||
container_definitions = jsonencode([
|
||||
{
|
||||
name = "mdmproxy"
|
||||
image = var.config.image
|
||||
cpu = var.config.cpu
|
||||
memory = var.config.mem
|
||||
essential = true
|
||||
name = "mdmproxy"
|
||||
image = var.config.image
|
||||
cpu = var.config.cpu
|
||||
memory = var.config.mem
|
||||
essential = true
|
||||
portMappings = [
|
||||
{
|
||||
# This port is the same that the contained application also uses
|
||||
|
||||
@@ -55,7 +55,7 @@ variable "config" {
|
||||
ipv6_cidr_blocks = optional(list(string), [])
|
||||
security_groups = optional(list(string), [])
|
||||
prefix_list_ids = optional(list(string), [])
|
||||
}), {
|
||||
}), {
|
||||
cidr_blocks = []
|
||||
ipv6_cidr_blocks = []
|
||||
security_groups = []
|
||||
|
||||
@@ -180,7 +180,7 @@ resource "aws_wafv2_regex_pattern_set" "bypass_urls" {
|
||||
scope = "REGIONAL"
|
||||
|
||||
dynamic "regular_expression" {
|
||||
for_each = toset(var.bypass_urls)
|
||||
for_each = toset(var.bypass_urls)
|
||||
content {
|
||||
regex_string = regular_expression.value
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ variable "bypass_urls" {
|
||||
Optional list of regex patterns for URL paths that bypass the IP allowlist WAF rule.
|
||||
The patterns must be valid AWS WAF regex strings.
|
||||
EOT
|
||||
type = list(string)
|
||||
default = []
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
Reference in new issue
Block a user