Step 1: Download IAM role 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": "INPUT-TYPE",
"platform": "aws"
},
"type": "permissions"
}
}'Understand the API response
Unescape the JSON
Use jq
jqTransform the content manually
Optional: Change IAM role name
What's next?
Last updated
Was this helpful?

