Terraform aws_cloudformation_stack should not show the diffs on unchanged template_body
Actual Behavior
My terraform aws_cloudformation_stack is loading template_body from yaml file
template_body = file("${path.root}/${var.template_url}")
This keeps displaying the diffs on unchanged template_body if the file is bigger than ~25KB / ~700 lines, smaller files are working well
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_cloudformation_stack" "this" {
name = var.name
parameters = var.parameters
template_body = file("${path.root}/${var.template_url}")
}
variable "name" {
type = string
}
variable "template_url" {
type = string
}
variable "parameters" {
type = map(any)
default = {}
}
Steps to Reproduce
Create aws_cloudformation_stack resources with template_body loaded from local file
Create a large cloud formation template yaml file (700 lines) as input of the resource above
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.2.6
AWS Provider Version
4.32.0
Affected Resource(s)
aws_cloudformation_stack
Expected Behavior
Terraform aws_cloudformation_stack should not show the diffs on unchanged template_body
Actual Behavior
My terraform
aws_cloudformation_stack
is loading template_body from yaml filetemplate_body = file("${path.root}/${var.template_url}")
This keeps displaying the diffs on unchanged template_body if the file is bigger than ~25KB / ~700 lines, smaller files are working wellRelevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
aws_cloudformation_stack
resources with template_body loaded from local fileDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response