---
title: "Connect AWS cloud"
method: POST
path: "/clouds/aws"
---

# Connect AWS cloud

`POST /clouds/aws`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/clouds/aws`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `clouds:write`

Connect a new AWS cloud environment

## Request body

- object
  - `role_arn` string, required: The ARN for the role that was created in the AWS account that Aikido can assume to access resource policies.
  - `name` string, required: A name for this cloud environment.
  - `environment` 'production' | 'staging' | 'development' | 'mixed', required: Indicates for what environment this cloud is responsible.

## Response `201`

The cloud environment has been successfully connected

- object
  - `id` integer: The ID of the newly connected cloud environment in Aikido.

## Other responses

- `422`: One or more of the provided fields are invalid.

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
