Skip to content

Commit

Permalink
verneuil support (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeNeyer authored Jan 8, 2024
1 parent fe130b1 commit 6633124
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions helm/charts/polytomic/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ WORKOS_CLIENT_ID: {{ .Values.polytomic.auth.workos_client_id | quote }}
ZENDESK_CLIENT_ID: {{ .Values.polytomic.zendesk_client_id | quote }}
ZENDESK_CLIENT_SECRET: {{ .Values.polytomic.zendesk_client_secret | quote }}
hubspot_scopes_v2: "true"
VERNEUIL_CONFIG: "{\"replication_spooling_dir\":\"/tmp/verneuil\",\"replication_targets\":[{\"s3\":{\"region\":\"{{ .Values.polytomic.s3.region }}\",\"chunk_bucket\":\"{{ .Values.polytomic.s3.operational_bucket }}/chunks\",\"manifest_bucket\":\"{{ .Values.polytomic.s3.operational_bucket }}/manifests\",\"create_buckets_on_demand\":false,\"domain_addressing\":false}}]}"
{{- if .Values.polytomic.s3.gcs }}
POLYTOMIC_USE_GCS: "true"
Expand Down
6 changes: 3 additions & 3 deletions terraform/modules/ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ module "polytomic-ecs" {

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.6 |
| <a name="provider_null"></a> [null](#provider\_null) | n/a |
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.22.0 |
| <a name="provider_null"></a> [null](#provider\_null) | 3.1.1 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.3.2 |

## Resources

Expand Down
3 changes: 3 additions & 0 deletions terraform/modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ locals {
# tags is var.task_tags converted to a string of key=value pairs
tags = join(",", [for key, value in var.task_tags : "${key}=${value}"])

verneuil_config = "{\\\"replication_spooling_dir\\\":\\\"/tmp/verneuil\\\",\\\"replication_targets\\\":[{\\\"s3\\\":{\\\"region\\\":\\\"${var.region}\\\",\\\"chunk_bucket\\\":\\\"${var.prefix}-${var.bucket_prefix}${local.polytomic_execution_bucket}/chunks\\\",\\\"manifest_bucket\\\":\\\"${var.prefix}-${var.bucket_prefix}${local.polytomic_execution_bucket}/manifests\\\",\\\"create_buckets_on_demand\\\":false,\\\"domain_addressing\\\":false}}]}"

private_subnet_cidrs = var.vpc_id == "" ? module.vpc[0].private_subnets_cidr_blocks : [for s in data.aws_subnet.subnet : s.cidr_block]
polytomic_export_bucket = "exports"
Expand Down Expand Up @@ -88,6 +89,8 @@ locals {
POLYTOMIC_DD_AGENT_IMAGE = var.polytomic_dd_agent_image
POLYTOMIC_LOGGER = var.polytomic_use_logger,
POLYTOMIC_LOGGER_IMAGE = var.polytomic_logger_image,

VERNEUIL_CONFIG = local.verneuil_config
}

environment = {
Expand Down

0 comments on commit 6633124

Please sign in to comment.