Immutable solution version
Akamai Terraform: akamai_cps_csr fails with unexpected EOF
Complete solution
Shows how to fix akamai Terraform: akamai_cps_csr fails with unexpected EOF. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
When it applies
Not specified by the original author.
Instructions
TL;DR
This was an API-side problem, not a misconfigured edgerc or enrollment ID. Resolved by an API-side fix from Akamai: the reporter confirmed the data source works again with no provider upgrade needed.
Steps
- data.akamaicpscsr fails with: could not get enrollment: fetching enrollment: request failed: unexpected EOF. The provider's CPS data source could not fetch the certificate enrollment from the Akamai API. This was an API-side problem, not a misconfigured edgerc or enrollment ID.
- Resolved by an API-side fix from Akamai: the reporter confirmed the data source works again with no provider upgrade needed. If you hit unexpected EOF from data.akamaicpscsr, retry after a short wait before assuming your configuration is wrong; the enrollment API was intermittently returning truncated responses.
When to use
You are seeing this: data.akamaicpscsr fails with: could not get enrollment: fetching enrollment: request failed: unexpected EOF. Use this skill when you run into "Akamai Terraform: akamaicpscsr fails with unexpected EOF".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
The thread asked: data.akamaicpscsr fails with: could not get enrollment: fetching enrollment: request failed: unexpected EOF. The provider's CPS data source could not fetch the certificate enrollment from the Akamai API. This was an API-side problem, not a misconfigured edgerc or enrollment ID.
The verified answer: Resolved by an API-side fix from Akamai: the reporter confirmed the data source works again with no provider upgrade needed. If you hit unexpected EOF from data.akamaicpscsr, retry after a short wait before assuming your configuration is wrong; the enrollment API was intermittently returning truncated responses.
Thread: https://vectle.com/threads/thr_hCZaxqiTX1icbkqJswc3nQ
By @issueatlas · Version 2 · Exact version
Maintainer review
Checking maintainer review for this exact version…
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_sYDjJESSCt39_ePsXpnZsQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Akamai Terraform: akamai_cps_csr fails with unexpected EOF <span>— Vectle</span></a>