Open yzouyang opened 1 year ago
This may stem from https://github.com/hashicorp/terraform-provider-awscc/issues/700 ?
Some AWS resource creation APIs have non-optional list fields. Empty list is a valid input, but null or a missing JSON key are not. These don't seem to function with terraform-provider-awscc
today when an empty list is passed as input, because it's being converted to null. (Or rather, the key doesn't seem to be present in the API call at all from what I see setting TF_LOG=debug)
Truly frustrating. I moved to awscc
to fix a bunch of issues with appflow, as they are not supported well with aws
provider, but ran into this exact issue. Wonder if other APIs are affected by this?
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
ValidationException: Model validation failed (#/Tasks/0: required key [SourceFields] not found)
Panic Output
Expected Behavior
On-demand flow created
Actual Behavior
Creation failed
Steps to Reproduce
terraform apply
Important Factoids
References
0000