title: Permission error when accessing AWS secrets manager from an EC2 instance
body: <p>I have a Python program running on a linux EC2 instance, I am trying to get a value from secrets manager but I keep getting a permissions error</p>
  
  <pre><code>An error occurred (AccessDeniedException) when calling the GetSecretValue operation: User: arn:aws:sts::user_id_here:assumed-role/AmazonSSMRoleForInstancesQuickSetup/somestring is not authorized to perform: secretsmanager:GetSecretValue on resource: arn:aws:secretsmanager:eu-west-2:xxx_my_secret
  </code></pre>
  
  <p>In my IAM settings the user is inside a group with Administrator access and then the user itself has the perimssion <code>SecretsManagerReadWrite</code></p>
  
  <p>What permissions do I need to change?</p>