title: AWS lambda AccessDeniedException calling another lambda function
body: <p>In my project i create a lambda function in python code that in one method have to call another lambda function using boto3.
  In my main lambda i create client like this:</p>
  
  <pre><code>client = boto3.client('lambda')
  </code></pre>
  
  <p>then i invoke my method in this fashion:</p>
  
  <pre><code>response = client.invoke(
              FunctionName='arn:aws:lambda:eu-west-1:1577:function:test',
              InvocationType='RequestResponse',
              LogType='None',
              Payload=json.dumps(d)
              )
  </code></pre>
  
  <p>but when i test my main lambda console return this error:</p>
  
  <blockquote>
    <p>An error occurred (AccessDeniedException) when calling the Invoke operation: User</p>
  </blockquote>
  
  <p>I try to set in my enviroment variables the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY but when i try to Save, return this error:</p>
  
  <blockquote>
    <p>Lambda was unable to configure your environment variables because the environment variables you have provided contains reserved keys that are currently not supported for modification. Reserved keys used in this request: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY</p>
  </blockquote>
  
  <p>How can i set in lambda a call using a IAM user?</p>
  
  <p>Thanks in advance</p>