Skip to content

Commit cb1ceac

Browse files
authored
Merge branch 'master' into feature/VED-366-internal-qa-env-pre-work
2 parents b11c7be + 2a1bf14 commit cb1ceac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2800
-2912
lines changed

.github/workflows/quality-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
2121

22-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
22+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
2323
with:
2424
node-version: "23.11.0"
2525
cache: "npm"

infrastructure/account/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/grafana/non-prod/terraform/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/instance/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/instance/modules/api_gateway/api.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ resource "aws_apigatewayv2_domain_name" "service_api_domain_name" {
3838
security_policy = "TLS_1_2"
3939
}
4040
mutual_tls_authentication {
41-
truststore_uri = "s3://${aws_s3_bucket.truststore_bucket.bucket}/${local.truststore_file_name}"
41+
truststore_uri = "s3://${aws_s3_bucket.truststore_bucket.bucket}/${local.truststore_file_name}"
42+
truststore_version = aws_s3_object_copy.copy_cert_from_storage.version_id
4243
}
4344
tags = {
4445
Name = "${var.prefix}-api-domain-name"

infrastructure/instance/modules/api_gateway/mtls_cert.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,27 @@ data "aws_s3_object" "cert" {
1212
key = local.truststore_file_name
1313
}
1414

15+
resource "terraform_data" "cert_etag" {
16+
input = data.aws_s3_object.cert.etag
17+
}
18+
1519
resource "aws_s3_bucket" "truststore_bucket" {
1620
bucket = "${var.prefix}-truststores"
1721
force_destroy = true
1822
}
1923

24+
resource "aws_s3_bucket_versioning" "truststore_bucket" {
25+
bucket = aws_s3_bucket.truststore_bucket.bucket
26+
versioning_configuration {
27+
status = "Enabled"
28+
}
29+
}
30+
2031
resource "aws_s3_object_copy" "copy_cert_from_storage" {
2132
bucket = aws_s3_bucket.truststore_bucket.bucket
2233
key = local.truststore_file_name
2334
source = "${data.aws_s3_object.cert.bucket}/${local.truststore_file_name}"
35+
lifecycle {
36+
replace_triggered_by = [terraform_data.cert_etag]
37+
}
2438
}

0 commit comments

Comments
 (0)