aws_glue_partition partition_values reordered during terraform apply #16718
Labels
bug
Addresses a defect in current functionality.
service/glue
Issues and PRs that pertain to the glue service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.14.2
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
A new partition in the glue table
database.table
with partition keys of:Actual Behavior
A new partition in the glue table
database.table
with partition keys of:Steps to Reproduce
terraform apply
aws glue get-partitions --database-name database --table-name table
or view the partition in the aws consoleAdditional information
I think this issue is cause by partition_values being defined as a
schema.TypeSet
instead of aschema.TypeList
so terraform is not storing the order correctly but I'm not very familiar with this code and could easily be wrong.terraform-provider-aws/aws/resource_aws_glue_partition.go
Line 45 in 7900b33
I've also tried reordering the partition_values list but it doesn't seem to have any effect.
The text was updated successfully, but these errors were encountered: