RJPearson94/terraform-provider-twilio

Twilio API returns serverless function and asset versions in a random order causes incorrect drifts to be detected

Closed this issue · 0 comments

Technical Details

  • OS: MacOS
  • Terraform Version: 0.15.0
  • Provider Version 0.9.0

Affected Resources

  • twilio_serverless_build

Describe the bug

When creating a serverless build with multiple function or asset versions that were created simultaneously, the Twilio API can return these in any order. As the order may not match the order the asset or function versions were supplied Terraform will detect this as a drift and the build is re-created on the next deployment.

This causes inconsistent behaviour in the resource as drift may or may not be detected

Expected behaviour

The resource should not detect a drift when the API returns the details in a random order