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

# Connect AWS cloud

`POST /clouds/aws`

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.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
