[Bug]: Error changing aws_codebuild_fleet resource after importing #39362
Labels
bug
Addresses a defect in current functionality.
service/codebuild
Issues and PRs that pertain to the codebuild service.
Terraform Core Version
1.9.5
AWS Provider Version
5.67.0
Affected Resource(s)
Expected Behavior
When trying to modify the configuration of this resource, the changes should be applied without any issues.
Actual Behavior
If the resource has been imported, the modify fails when trying to perform the UpdateFleet operation, stating the ARN of the resource is invalid.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
aws_codebuild_fleet.zip
Steps to Reproduce
ToBeDeleted1
using the AWS console. Set Overflow behavior to Queue.terraform import aws_codebuild_fleet.this ToBeDeleted1
.terraform apply -auto-approve
.Debug Output
No response
Panic Output
No response
Important Factoids
Comparing the resource objects in the Terraform state file between an imported resource and a resource created with Terraform, the only difference is in
instances.attributes.id
: the first one contains the name of the fleet, while the second one contains its ARN.The error says that the ARN of the fleet is invalid, which makes me think that the ARN is being read from
id
, which in one case it contains the ARN, but in the other one, it contains the name.References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: