Hide CloudFormation template sensitive parameters #15771
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/cloudformation
Issues and PRs that pertain to the cloudformation service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
This issue was originally opened by @BartekChojnacki as hashicorp/terraform#26288. It was migrated here as a result of the provider split. The original body of the issue is below.
Hello,
When I want to run cloudformation stack from Terraform and this stack has sensitive parameters, which are set up in cloudformation template as ( SecretString: Type: 'String' NoEcho: true ) there are no possibility to make sensitive section parameters = {} / parameter_overrides = { } and all sensitive parameters are visible in terraform plan.
Current Terraform Version
Use-cases
# module.iam_module.aws_cloudformation_stack_set_instance.smsminstance["aws-network-non-prod"] will be updated in-place ~ resource "aws_cloudformation_stack_set_instance" "examample_instance" { account_id = "example_account" id = "tfe-stackset-sm-deployer,016091306659,eu-west-1" ~ parameter_overrides = { ~ "SecretString" = "****" -> jsonencode( { + SECRET_KEY = "SECRET_KEY_VALUE"
Proposal
There should be an option to make parameters {} section for resource "aws_cloudformation_stack_set" and parameter_overrides = {} for resource "aws_cloudformation_stack_set_instance" sensitive, and hide it on the plan if it is needed. Especially when the input parameters of the cloudformation template are sensitive.
The text was updated successfully, but these errors were encountered: