---
title: "Create AWS Data Source"
method: POST
path: "/v1/dataSources/aws"
tags: ["Cloud"]
---

# Create AWS Data Source

`POST /v1/dataSources/aws`

Create a new data source from AWS data. Returns a jobId that can be used to retrieve the status from the Get "Create AWS Data Source" Job Status endpoint.

## Request body

- CreateAwsDataSourceRequest
  - `name` string, required — The name to give the data source
  - `awsCredentialId` string — AWS credential ID
  - `awsAccountId` string, required — The ID of the AWS account which contains the data from which to create the data source
  - `regions` string[], required — The AWS regions which contain the data from which to create the data source. Use the "Get Supported AWS Regions" endpoint to see a list of all supported regions.
  - `resourceSelection` string[] — The AWS resources to include in the data source. Use the "Get Fully Supported AWS Resources" endpoint to see a list of all supported resources.

## Response `202`

Accepted. Occurs when the creation job has been queued.

- JobReferenceIdResponse
  - `jobId` string, required — Unique identifier for an asynchronous job

## Other responses

- `400` — Bad Request. Occurs when no file is found or the file is invalid.

---

[API](https://skmtc.net/lucid/apis/lucid-rest-api.md) · [All operations](https://skmtc.net/lucid/apis/lucid-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lucid/lucid-rest-api/revisions/6a32cb9e1aa7/schema)
