You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have 28 environments in our LD project. After running terraform import ... on this project I observe in the updated state file that the length of project.instances.attributes.environments is 20. The expected value is 28.
My guess is that the issue is that the environments are not paginated after fetching the first batch (via the project?expand=environment REST API call):
We just released v2.13.3 which includes a fix for this issue. Please feel free to reopen this issue if you are still experiencing issues after upgrading.
We have 28 environments in our LD project. After running
terraform import ...
on this project I observe in the updated state file that the length ofproject.instances.attributes.environments
is20
. The expected value is28
.My guess is that the issue is that the environments are not paginated after fetching the first batch (via the
project?expand=environment
REST API call):terraform-provider-launchdarkly/launchdarkly/project_helper.go
Line 106 in 76f9687
Here are the links to the LD REST API docs for reference:
https://apidocs.launchdarkly.com/tag/Projects#operation/getProject
https://apidocs.launchdarkly.com/tag/Environments
The default page size is indeed 20 items.
The text was updated successfully, but these errors were encountered: