Comments (5)
Hi @davidji99, I just created a PR -> #111
Let me know if you like the philosophy that I took and if you believe that something is missing, I can rewrite it if it's needed!
As I don't have a sandbox environment I wasn't able to test it through the API with all the functionalities, I just ran a terraform plan for environments and now it's working.
But this only covers the "get" use case, not post, patch, etc.
from terraform-provider-split.
The HTTP GET use case should be good enough since the rate limiting happens when the statefile is being refreshed in the plan phase.
Only in the case of updating/recreating a very large Split environment with the provider we may hit the limit if the request happen in parallel.
from terraform-provider-split.
I'll work on this and raise a PR @davidji99
from terraform-provider-split.
Hmm, this is interesting. 20 resources at the default parallelization of 10 for terraform seems quite low for a rate limit.
I'm curious, what happens if you set the -parallelism
flag to say 5 (terraform apply -parallelism 5
)?
In any event, let me raise this issue to my Split contacts.
from terraform-provider-split.
I did try adding -parallelism=1
and the issue persists.
Based on their documentation, when you receive a 429
HTTP code (which is the rate limit), they return in their headers how much time you should wait to get a new quota. I guess we could add that to the client for doing a retry logic.
Here there is another provider which had the same issue: okta/terraform-provider-okta#186
Let me know what your contacts say about this issue.
I'm planning to work on this by the end of this week, to have a PR and then we can decide if we merge or not :)
from terraform-provider-split.
Related Issues (10)
- Type error on split tags HOT 2
- provider.terraform-provider-split_v0.10.1: panic: runtime error: invalid memory address or nil pointer dereference HOT 3
- Tag association
- typo in repo "About" section. It is Split, not Spit :) HOT 2
- New resource: split_traffic_type_attribute HOT 3
- Doc Bug - split_workspace data source not documented HOT 1
- New resource: `split_segment` HOT 1
- New resource: `split_api_key` HOT 1
- New resource: `split_user_group_association`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-split.