Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions modules/ssm/ssm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ resource "aws_ssm_parameter" "github_app_id" {
value = var.github_app.id
key_id = local.kms_key_arn
tags = var.tags

# The AWS provider exposes `insecure_value` as a computed/optional attribute and
# surfaces a "+ insecure_value = (known after apply)" diff on every plan for
# SecureString params (the API never returns it). `version` similarly drifts to
# "(known after apply)" because the provider treats it as recomputed. Neither
# actually changes anything on apply — ignore them to silence perpetual no-op
# drift for consumers of this module.
lifecycle {
ignore_changes = [insecure_value, version]
}
}

resource "aws_ssm_parameter" "github_app_key_base64" {
Expand All @@ -14,6 +24,10 @@ resource "aws_ssm_parameter" "github_app_key_base64" {
value = var.github_app.key_base64
key_id = local.kms_key_arn
tags = var.tags

lifecycle {
ignore_changes = [insecure_value, version]
}
}

resource "aws_ssm_parameter" "github_app_webhook_secret" {
Expand All @@ -23,4 +37,8 @@ resource "aws_ssm_parameter" "github_app_webhook_secret" {
value = var.github_app.webhook_secret
key_id = local.kms_key_arn
tags = var.tags

lifecycle {
ignore_changes = [insecure_value, version]
}
}