Skip to content

aws_glue_catalog_table Error: Provider produced inconsistent result after apply  #29076

Open
@drennie84

Description

Terraform Core Version

1.0.0

AWS Provider Version

3.75.2

Affected Resource(s)

aws_glue_catalog_table

Expected Behavior

table created without any errors

Actual Behavior

table is created but an the error is returned and the resource's state isn't tracked

When applying the changes again, a different error is returned table already exists

Relevant Error/Panic Output Snippet

Error: Provider produced inconsistent result after apply
    
When applying changes to module.datalake.aws_glue_catalog_table.table-name
provider "provider[\"registry.terraform.io/hashicorp/aws\"]" produced an 
unexpected new value: Root resource was present, but now absent.

This is a bug in the provider, which should be reported in the provider's 
own issue tracker

Terraform Configuration Files

resource "aws_glue_catalog_table" "table-name" {
  name          = "milestone_event"
  database_name = "governed_database-name"
  table_type = "GOVERNED"
  partition_keys {
    name = "default_partition"
    type = "string"
  }
  storage_descriptor {
    input_format  = "org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat"
    output_format = "org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat"
    location      = "s3://${var.s3_raw_bucket}/data/"
    ser_de_info {
      name = "governed_milestone"
      parameters = {
        "serialization.format" = "1"
      }
      serialization_library = "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe"
    }
    columns {
      name    = "id"
      type    = "string"
      comment = ""
    }
    columns {
      name    = "title"
      type    = "string"
      comment = ""
    }
  }
}

Steps to Reproduce

terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Checked the glue code for isNewResource in the read method

func resourceCatalogTableRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {

Issues may be related to #16796

Would you like to implement a fix?

None

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/glueIssues and PRs that pertain to the glue service.staleOld or inactive issues managed by automation, if no further action taken these will get closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions