title: Jenkins CDK Permission denied
body: <p>I am trying to use aws cdk synth with jenkins but i get an error saying cdk: Permission denied</p>
  <p>Error: <a href="https://i.stack.imgur.com/6V22V.png" rel="nofollow noreferrer">cdk:permission denied</a></p>
  <p>I am running the aws cdk synth command directly on the jenkins pipeline script like this: <a href="https://i.stack.imgur.com/9Y6ae.png" rel="nofollow noreferrer">cdk synth</a></p>
  <p>I have given jenkins sudo permissions but it still doesnt work. I have tried putting the command in a bash script but then i get bash permission denied</p>