# Amazon Web Services Scope

> `UiPath.AmazonWebServices.Activities.AmazonWebServicesScope`

`UiPath.AmazonWebServices.Activities.AmazonWebServicesScope`

## Description

Connects to Amazon Web Services (AWS) and provides a scope for other AWS activities.

Click [here](https://aws.amazon.com/premiumsupport/knowledge-center/create-access-key/) and [here](https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys) for more information about Amazon Web Services and the available parameters and values.

:::note
To perform Amazon IAM tasks, you need to grant the appropriate permissions. For more information, see [Permissions required to access IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_permissions-required.html).
:::

## Project compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Input

* **Region** - Specifies the AWS Region to connect to. This field supports only strings and `String` variables.
  :::note
  The list of codes that can be set as values for the **Region** option can be found [here](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions).
  :::

### Connect with Access Keys

* **AccessKeyId** - The access key used to connect to Amazon Web Services. This field supports only strings and `String` variables.
* **SecretAccessKey** - Specifies the secret key used for connecting to Amazon Web Services. This field supports only `SecureString` variables.
* **Temporary Session Token** - The temporary session token (optional). If provided, this token is used to create the AWS client session.

### Connect with IAM Role

* **IAMRole** - Specifies the name of the IAM Role.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

:::note
If you want to connect to Amazon Web Services (AWS) you must specify either the **Access Keys** (AccessKeyId and SecretAccessKey) or an **IAMRole** (when the robot is running within an EC2 instance). Connecting via the **IAM Role** option requires the UiPath Robot running the automation to be deployed in an AWS EC2 instance to which the specified IAM Role is attached. Follow the steps described in the [AWS documentation](https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-hosm.html).
:::
