Open consal opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
I have the same issue. A reimport of the resource in tf state did not help
aws = {
version = "= 4.67.0"
source = "hashicorp/aws"
}
Error: updating Service Catalog Provisioned Product (pp-unnf7ojzrob64): InvalidParametersException: Invalid PathId: lpv2-idjpzoaysispo
Using the aws cli we could find that the path changed for the "product" The "provisioned product" refers to a last record with the old path value.
Should the provider use the path id of the product? If so this is a bug in the provider else the question is who should update or recreate the provisioned product's last record with the new value?
Terraform Core Version
1.4.6
AWS Provider Version
4.21.0
Affected Resource(s)
Service Catalog Product
Expected Behavior
After the
terraform apply
failed, the state should not be modified.Actual Behavior
After the
terraform apply
failed, the state was modified with the new values.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
module "eks" is just a
aws_servicecatalog_provisioned_product
:Steps to Reproduce
path_id
attribute of the service catalogue product is incorrect (simulate the id actually being changed because the product was moved etc.)terraform apply
and make sure it fails withError: error updating Service Catalog Provisioned Product (pp-c5grygzt4cab2): InvalidParametersException: Invalid PathId: lpv2-pvfn5six4yb2i
Bonus:
terraform apply -refresh-only
will also say that the state is up to dateOnce you change
path_id
to the correct one and you run apply, terraform will apply correct values in the productDebug Output
And then on the second run immediately after:
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None