acoustic-architect-39949
08/21/2025, 2:41 PMresource "aws_secretsmanager_secret_version" "app_secret_version" {
secret_id = aws_secretsmanager_secret.app_secret.id
secret_string = var.secret_string
lifecycle {
ignore_changes = all
}
}
microscopic-river-74022
08/21/2025, 2:41 PMmicroscopic-river-74022
08/21/2025, 2:41 PMignore_changes
lifecycle block in Terraform for this scenario.
The documentation covers how Garden integrates with Terraform, including dynamic backend configuration and how to pass variables and secrets to Terraform, but it does not address the specific behavior of AWS Secrets Manager resources or how manual changes to secrets interact with Terraform's state and apply cycles. There is also no mention of best practices or troubleshooting for preventing Terraform from overwriting manually updated secrets in AWS Secrets Manager.
If you need further assistance, I recommend consulting the official Terraform AWS provider documentation or AWS Secrets Manager documentation for guidance on managing secret versions and preventing unintended overwrites.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
08/21/2025, 2:41 PMacoustic-architect-39949
08/21/2025, 2:43 PM