Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Management: Plugin error with large openAPI file imports #12227

Open
jwefers opened this issue Jun 16, 2021 · 0 comments
Open

API Management: Plugin error with large openAPI file imports #12227

jwefers opened this issue Jun 16, 2021 · 0 comments
Labels
bug provider service/api-management upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)

Comments

@jwefers
Copy link

jwefers commented Jun 16, 2021

Hello,

we want to expose the API of a SaaS product called commercetools through APIM for our internal APIs. We therefore create an azurerm_api_management_api with import of their openapi file (from https://github.com/commercetools/commercetools-api-reference).

The first deployment works fine. However, on running tf apply again, during refresh of the resource, we encouter this:

│ Error: Plugin error
│ 
│   with module.commercetools.azurerm_api_management_api.commercetools_graphql,
│   on ../commercetools/apim_api_declaration.tf line 9, in resource "azurerm_api_management_api" "commercetools_graphql":
│    9: resource "azurerm_api_management_api" "commercetools_graphql" {
│ 
│ The plugin returned an unexpected error from
│ plugin.(*GRPCProvider).PlanResourceChange: rpc error: code =
│ ResourceExhausted desc = grpc: received message larger than max (5727548
│ vs. 4194304)

Granted, their API file is huge. Can this be fixed or do i have to manually split up the API?

@katbyte katbyte added bug provider service/api-management upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc) labels Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug provider service/api-management upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)
Projects
None yet
Development

No branches or pull requests

2 participants