Open jmcvetta opened 2 years ago
Voting for Prioritization
Volunteering to Work on This Issue
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Terraform Core Version
1.3.1
AWS Provider Version
4.24.0
Affected Resource(s)
aws_ssm_parameter
Expected Behavior
After importing an existing SSM Parameter Store parameter, TF notices that the resource's
key_id
in live infrastructure does not match configuration.Actual Behavior
After importing an existing SSM Parameter Store parameter, TF fails to notice that the resource's
key_id
in live infrastructure does not match configuration.This behavior occurs only when
key_id
isnull
in configuration. Whenkey_id
is null, it is supposed to default to the AWS-managed KMS keyalias/aws/ssm
. Ifkey_id
is set, then TF notices the difference.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
key_id
is specified. (Whenkey_id
is null, TF defaults to the AWS managed key,alias/aws/ssm
.)aws_ssm_parameter
resource to set its KMS key to the default AWS-managed keyalias/aws/ssm
. But plan actually doesn't notice a difference between infrastructure and configuration.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No