> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect AWS Lambda with AWS IAM Credentials – StackOne Hub

> Link a AWS Lambda account in the StackOne Hub using AWS IAM Credentials. End-user guide to authorize the integration and start using AWS Lambda actions.

<Warning>You need an AWS account with IAM permissions to create users and access keys (administrator access or an equivalent IAM policy).</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Create an IAM user</h2>

  <p>Create a dedicated IAM user for StackOne so its access can be managed and revoked independently of your own.</p>

  <Steps>
    <Step title="Sign in to AWS">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://console.aws.amazon.com/iam/" target="_blank" rel="noopener noreferrer">AWS IAM console</a>.</p>

        <ul>
          <li>Navigate to <strong>Users</strong> > <strong>Create user</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Set the user name">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Enter a name for the user and continue.</p>

        <ul>
          <li>Example: `stackone-lambda`</li>
          <li>Click <strong>Next</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Attach permissions">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Grant the user access to Lambda.</p>

        <ul>
          <li>Select <strong>Attach policies directly</strong>.</li>
          <li>Attach <strong>AWSLambda\_FullAccess</strong>, or a custom policy scoped to only the Lambda actions you need.</li>
          <li>Click <strong>Next</strong>, then <strong>Create user</strong>.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create an access key</h2>

  <p>Generate the Access Key ID and Secret Access Key that StackOne uses to sign requests.</p>

  <Steps>
    <Step title="Open the user's security credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From <strong>Users</strong>, select the user you just created and open the <strong>Security credentials</strong> tab.</p>

        <ul>
          <li>Under <strong>Access keys</strong>, click <strong>Create access key</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Choose a use case">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Select <strong>Third-party service</strong> as the use case.</p>

        <ul>
          <li>Acknowledge the recommendation, then click <strong>Next</strong>.</li>
          <li>(Optional) Add a description tag, then click <strong>Create access key</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the Access Key ID and Secret Access Key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy both values and store them securely for use later.</p>

        <ul>
          <li><strong>Access Key ID</strong> format: `AKIAIOSFODNN7EXAMPLE`</li>
          <li>The <strong>Secret Access Key</strong> is shown only once — if you lose it, delete the access key and create a new one.</li>
          <li>Optionally click <strong>Download .csv file</strong> to save both values.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find your AWS Region</h2>

  <p>Your AWS Region determines which regional Lambda endpoint StackOne connects to. Use the Region that hosts your functions.</p>

  <ul>
    <li>Check the Region selector in the top-right of the AWS console.</li>
    <li>Enter the Region code, not the display name</li>
    <li>Example: `US East (N. Virginia)` is `us-east-1`, and `Europe (London)` is `eu-west-2`</li>
  </ul>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Access Key ID</strong></li>
        <li><strong>Secret Access Key</strong></li>
        <li><strong>AWS Region</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
