Skip to content

Commit e29e8cc

Browse files
committed
CCM-11586: remove config variable, reference infra
1 parent 911df5d commit e29e8cc

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

infrastructure/terraform/components/api/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ No requirements.
2424
| <a name="input_project"></a> [project](#input\_project) | The name of the tfscaffold project | `string` | n/a | yes |
2525
| <a name="input_region"></a> [region](#input\_region) | The AWS Region | `string` | n/a | yes |
2626
| <a name="input_shared_infra_account_id"></a> [shared\_infra\_account\_id](#input\_shared\_infra\_account\_id) | The AWS Account ID of the shared infrastructure account | `string` | `"000000000000"` | no |
27-
| <a name="input_truststore_s3_bucket_config"></a> [truststore\_s3\_bucket\_config](#input\_truststore\_s3\_bucket\_config) | Parameters for configuring the Notify Supplier API truststore bucket | <pre>object({<br/> kms_key_id = string<br/> kms_key_arn = string<br/> bucket_logs_bucket_name = string<br/> })</pre> | <pre>{<br/> "bucket_logs_bucket_name": "",<br/> "kms_key_arn": "",<br/> "kms_key_id": ""<br/>}</pre> | no |
2827
## Modules
2928

3029
| Name | Source | Version |

infrastructure/terraform/components/api/s3_bucket_truststore.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "truststore" {
1717
rule {
1818
apply_server_side_encryption_by_default {
1919
sse_algorithm = "aws:kms"
20-
kms_master_key_id = var.truststore_s3_bucket_config.kms_key_id
20+
kms_master_key_id = module.kms.key_id
2121
}
2222
bucket_key_enabled = true
2323
}
@@ -47,7 +47,7 @@ resource "aws_s3_bucket_public_access_block" "truststore" {
4747
resource "aws_s3_bucket_logging" "truststore" {
4848
bucket = aws_s3_bucket.truststore.id
4949

50-
target_bucket = var.truststore_s3_bucket_config.bucket_logs_bucket_name
50+
target_bucket = "${local.csi_s3}-bucket-logs"
5151
target_prefix = "truststore/${aws_s3_bucket.truststore.bucket}/"
5252
}
5353

infrastructure/terraform/components/api/variables.tf

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,3 @@ variable "enable_backups" {
9898
description = "Enable backups"
9999
default = false
100100
}
101-
102-
variable "truststore_s3_bucket_config" {
103-
type = object({
104-
kms_key_id = string
105-
kms_key_arn = string
106-
bucket_logs_bucket_name = string
107-
})
108-
description = "Parameters for configuring the Notify Supplier API truststore bucket"
109-
default = {
110-
bucket_logs_bucket_name = ""
111-
kms_key_arn = ""
112-
kms_key_id = ""
113-
}
114-
}

0 commit comments

Comments
 (0)