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

# Account with Access Key for AWS China Accounts

> This document describes how to set up an Aviatrix access account in AWS by using an IAM user access key and secret ID, instead of IAM roles. This onboarding method is designed for AWS China accounts.

This document describes how to set up an Aviatrix access account in AWS by using
an IAM user access key and secret ID, instead of IAM roles. This onboarding
method is designed for AWS China accounts.

<Note>If you are onboarding a standard AWS account, use IAM roles.</Note>

## Creating an IAM Policy

1. Log into the AWS console > IAM > Policies. Click **Create Policy**, and then
   click **JSON**. Delete the example JSON text.

2. Copy and paste the
   [Aviatrix AWS policy](https://s3-us-west-2.amazonaws.com/aviatrix-download/IAM_access_policy_for_CloudN.txt)
   to create a new IAM policy, as shown below. Give policy a name:
   aviatrix-role-app.

<img src="https://mintcdn.com/aviatrix-14b37c43/SLQZZmwp9yQQEWL0/images/reference/general/create-policy.png?fit=max&auto=format&n=SLQZZmwp9yQQEWL0&q=85&s=55aa12240fda2e3d3a879bd9616db136" alt="create-policy" width="1202" height="681" data-path="images/reference/general/create-policy.png" />

## Creating an IAM User

1. Log in to the AWS Console > IAM > Users.
2. Click **Add user** to create a new IAM user and allow programmable access, as
   shown below.

<img src="https://mintcdn.com/aviatrix-14b37c43/SLQZZmwp9yQQEWL0/images/reference/general/add-iam-user.jpg?fit=max&auto=format&n=SLQZZmwp9yQQEWL0&q=85&s=28c94b1c3836c308f40f9d9a951c5431" alt="add-iam-user" width="1187" height="577" data-path="images/reference/general/add-iam-user.jpg" />

### Attaching the Policy to the User

Next, attach the created policy to this IAM user, as shown below.

<img src="https://mintcdn.com/aviatrix-14b37c43/SLQZZmwp9yQQEWL0/images/reference/general/attach-policy.png?fit=max&auto=format&n=SLQZZmwp9yQQEWL0&q=85&s=745f5aa52a0cf675f7b6be479082e7a5" alt="attach-policy" width="1143" height="442" data-path="images/reference/general/attach-policy.png" />

## Setting up an Access Key and Secret Access Key

Finally, create an access key and secret key to be used by the Aviatrix access
account for this IAM user.

<img src="https://mintcdn.com/aviatrix-14b37c43/SLQZZmwp9yQQEWL0/images/reference/general/access-key.png?fit=max&auto=format&n=SLQZZmwp9yQQEWL0&q=85&s=b04bd925ce44dc4da7873e22395557b1" alt="accesskey" width="1206" height="503" data-path="images/reference/general/access-key.png" />
