Step 1: Download service account IaC template (API)
Retrieve the IaC template
curl -X POST \
'https://api.snyk.io/rest/orgs/YOUR-ORGANIZATION-ID/cloud/permissions?version=2022-12-21~beta' \
-H 'Authorization: token YOUR-API-TOKEN' \
-H 'Content-Type:application/vnd.api+json' -d '{
"data": {
"attributes": {
"type": "tf",
"platform": "google"
},
"type": "permissions"
}
}'Unescape the JSON
Use jq
jqTransform the content manually
What's next?
Last updated
Was this helpful?

