Whenever quota is exceeded, terraform keeps trying to create the resource for about two minutes before failing, when it finally fails, it does NOT say it was because of the quota so the user is left to figure things out.
This should fail straight away as it does on the API, CLI, etc. Not keep retrying
Acceptance Criteria
Have this resource fail straight away when quota is exceeded and return the message from the API. Do this for ALL resources, starting with Network and Instances.
This ticket should be used as a reference for a bigger piece of work revamping the way we handle errors in terraform. The default behaviour with our provider seems to be to keep trying and it does NOT return the error the API gives, which is a problem.
We need to go through the entire provider and change the behaviour for everything not by writing error messages in terraform provider, but returning errors from the API
Issues
Whenever quota is exceeded, terraform keeps trying to create the resource for about two minutes before failing, when it finally fails, it does NOT say it was because of the quota so the user is left to figure things out.
This should fail straight away as it does on the API, CLI, etc. Not keep retrying
Acceptance Criteria
This ticket should be used as a reference for a bigger piece of work revamping the way we handle errors in terraform. The default behaviour with our provider seems to be to keep trying and it does NOT return the error the API gives, which is a problem.
We need to go through the entire provider and change the behaviour for everything not by writing error messages in terraform provider, but returning errors from the API