Skip to content

Commit 7b3cc91

Browse files
chore(kpi,PIN-8741): add environment variable to configure ingestion to redshift by COPY
1 parent 5e3bb31 commit 7b3cc91

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

commons/dev-analytics/values-microservice.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ deployment:
1919
env:
2020
LOG_LEVEL: "info"
2121

22+
local:
23+
awsAccountId: "505630707203"
24+
env: "dev"
25+
2226
autoscaling:
2327
keda:
2428
create: true

microservices/jwt-audit-analytics-writer/dev-analytics/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@ service:
88

99
configmap:
1010
SERVICE_NAME: pagopa-interop-jwt-audit-analytics-writer
11-
SQS_NOTIFICATION_ENDPOINT: https://sqs.eu-south-1.amazonaws.com/505630707203/interop-analytics-jwt-audit-dev
11+
SQS_NOTIFICATION_ENDPOINT: https://sqs.eu-south-1.amazonaws.com/{{.Values.local.awsAccountId}}/interop-analytics-jwt-audit-{{.Values.local.env}}
1212
S3_BUCKET: interop-generated-jwt-details-dev-es1
1313
BATCH_SIZE: 500
14+
DB_INGEST_MODE: COPY
15+
SQS_RECEIVE_MSGS_CALLS: 100
16+
SQS_RECEIVE_MSGS_CONCURRENCY: 10
17+
S3_COPY_BUCKET: interop-generated-jwt-details-{{.Values.local.env}}-es1
18+
S3_DELETE_AFTER_COPY: true
19+
GZ_COMPRESSION_LEVEL: 3
20+
MAX_DAYS_TOLERANCE_FOR_DUPLICATE_DELAY: 60
21+
REDSHIFT_COPY_IAM_ROLE_ARN: arn:aws:iam::{{.Values.local.awsAccountId}}:role/interop-analytics-redshift-s3-copy-{{.Values.local.env}}
1422

1523
deployment:
1624
flywayInitContainer:

0 commit comments

Comments
 (0)