Skip to content

Commit

Permalink
Merge pull request #8122 from ministryofjustice/fix/7607-more-ssm-adj…
Browse files Browse the repository at this point in the history
…ustments

More fixes for ssm params
  • Loading branch information
dms1981 authored Sep 30, 2024
2 parents 72f0013 + f026759 commit 1f0a902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/environments/core-logging/cortex.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ data "aws_iam_policy_document" "cortex_trust_policy" {

principals {
type = "AWS"
identifiers = ["arn:aws:iam::${aws_ssm_parameter.cortex_account_id.value}:root"]
identifiers = ["arn:aws:iam::${aws_ssm_parameter.cortex_account_id.insecure_value}:root"]
# Palo Alto Cortex AWS Account ID
# Taken from https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Create-an-Assumed-Role
}
Expand Down
3 changes: 2 additions & 1 deletion terraform/environments/core-logging/ssm.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_ssm_parameter" "cortex_account_id" {
#checkov:skip=CKV2_AWS_34: "Parameter is not sensitive; account ID is publicly available."
lifecycle {
ignore_changes = [value]
ignore_changes = [insecure_value]
}
provider = aws.modernisation-platform
description = "Account ID for Palo Alto Cortex XSIAM cross-account role."
Expand All @@ -16,6 +16,7 @@ resource "aws_ssm_parameter" "core_logging_bucket_arns" {
provider = aws.modernisation-platform
description = "Bucket ARNs in core-logging for Palo Alto Cortex XSIAM."
name = "core_logging_bucket_arns"
overwrite = true
type = "String"
insecure_value = jsonencode({
for key in local.cortex_logging_buckets :
Expand Down

0 comments on commit 1f0a902

Please sign in to comment.