Open gagan1469 opened 3 months ago
Thanks for opening the issue @gagan1469 . I can reproduce this both on the Terraform configuration and via cloud control api. Opening an internal service ticket to review this.
Thanks for opening the issue @gagan1469 . I can reproduce this both on the Terraform configuration and via cloud control api. Opening an internal service ticket to review this.
Thank you @quixoticmonk. This touches other attributes and possibly all. I could not edit tags (after I reordered them to correctly identify drift). I think you can reproduce it for changing a model property (using simple alphabetical names you used in #1965).
And you should also see this issue in the editing of an awscc_iotsitewise_asset resource as well.
@quixoticmonk I setup a simple asset model with a single asset model property to avoid the sequencing issue reported in #1965. Also, created an asset using the simple asset model. The code is included below, if you want to use in your testing. Making a single change, and running terraform apply, I can confirm that changing the following attributes in awscc_iotsitewise_asset resource result in the "AWS SDK Go Service Operation Incomplete" error:
Did you want to open a separate issue for awscc_iotsitewise_asset? Resource code follows:
# temporary - simple model with one property to test awscc bug
resource "awscc_iotsitewise_asset_model" "iot-pressure" {
asset_model_name = "iot-pressure"
asset_model_description = "Single property asset model for awscc update testing"
asset_model_type = "ASSET_MODEL"
asset_model_properties = [
{
name = "pressure"
data_type = "DOUBLE"
logical_id = "pressure"
type = {
type_name = "Measurement"
}
unit = "psi"
}
]
tags = var.tags
# not using asset_model_composite_models and asset_model_hierarchies
# but add them to the ignore changes list
lifecycle {
ignore_changes = [tags,
asset_model_composite_models,
asset_model_hierarchies
]
}
}
resource "awscc_iotsitewise_asset" "hou-pressure" {
asset_model_id = awscc_iotsitewise_asset_model.iot-pressure.id
asset_name = "hou-pressure"
asset_description = "Single property asset for awscc update testing"
asset_properties = [
{
alias = "/iot/houston/pressure"
notification_state = "DISABLED"
logical_id = "pressure"
unit = "psi"
}
]
tags = var.tags
lifecycle {
ignore_changes = [tags,
asset_hierarchies
]
}
}
Thanks @gagan1469 . I can include the reference of awscc_iotsitewise_asset
into the same ticket specifying the issue exists there as well.
Hi @quixoticmonk, would you be able to provide an update on this issue? Do you know when we can expect an update in the cloud control api / updated awscc provider? Out of curiosity, does this issue exist in CloudFormation as well?
The ticket is still being reviewed for the changes required from the handlers which review the Id being used in update operations. I haven't had a chance to test this with CloudFormation yet.
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.
Note: tags are read in from a yaml file. The tags are:
Debug Output
Panic Output
Expected Behavior
Terraform plan detects that the asset_model_description has changed from "Wireless Voltage Sensors" to "Wireless Voltage Sensors for Field Testing", and should make the change. The change should be visible in the console.
Actual Behavior
Terraform apply returns error and the job fails to run to completion. The error message is:
The error was reproduced 3 different times.
Steps to Reproduce
terraform apply
Important Factoids
References