-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeSet with nested TypeMap shows empty map in plan output when a map is removed from config #588
Labels
bug
Something isn't working
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
terraform-plugin-framework
Resolved in terraform-plugin-framework
Comments
Also reproducible with test in
Output:
|
This behavior also happens with deeply nested "distribution": {
Type: schema.TypeSet,
Required: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"ami_distribution_configuration": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"ami_tags": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
// ...
},
},
},
// ...
},
},
}, Will generate an empty |
paddycarver
added
the
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
label
Jan 6, 2021
This was referenced Mar 4, 2021
bflad
added
the
terraform-plugin-framework
Resolved in terraform-plugin-framework
label
Mar 30, 2022
7 tasks
This was referenced Sep 14, 2023
Is it intentional that order of metrics matter on HPAs?
hashicorp/terraform-provider-kubernetes#1188
Open
ewbankkit
added a commit
to hashicorp/terraform-provider-aws
that referenced
this issue
Nov 17, 2023
ewbankkit
added a commit
to hashicorp/terraform-provider-aws
that referenced
this issue
Nov 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
subsystem/types
Issues and feature requests related to the type system of Terraform and our shims around it.
terraform-plugin-framework
Resolved in terraform-plugin-framework
SDK version
Relevant provider source code
Excerpt from aws/resource_aws_autoscaling_group.go (
v3.7.0
):Terraform Configuration Files
https://gist.github.com/anGie44/417856ad8231c96a89cf9e0d0356817f
Debug Output
Expected Behavior
Actual Behavior
Steps to Reproduce
Using main.tf:
a.
terraform init
b.
terraform apply
Using update.tf (same as main.tf but with 2nd map in
tags
removed):a.
terraform plan
References
The text was updated successfully, but these errors were encountered: