---
title: "POST /v2/create-input-source"
method: POST
path: "/v2/create-input-source"
---

# POST /v2/create-input-source

`POST /v2/create-input-source`

Creates an input source for a service.

## Request body

- object
  - `serviceArn` string, required — ARN identifier.
  - `resourceConfiguration` object, required — Resource configuration for an input source. Provide exactly one field.
    - `resourceTags` ResourceTag[] — The resource tags for tag-based resource discovery.
      - `key` string, required — Tag key.
      - `values` TagValue[], required — The list of tag values.
    - `cfnStackArn` string — ARN identifier.
    - `tfStateFileUrl` string — S3 URL — virtual hosted-style or s3:// URI.
    - `eks` object — The Amazon EKS configuration for resource discovery.
      - `clusterArn` string, required — ARN identifier.
      - `namespaces` EksNamespace[], required — The list of Kubernetes namespaces within the EKS cluster.
    - `designFileS3Url` string — S3 URL — virtual hosted-style or s3:// URI.
  - `clientToken` string — Idempotency token.

## Response `200`

Success

- CreateInputSourceResponse
  - `serviceArn` string, required — ARN identifier.
  - `inputSourceId` string, required — The unique identifier assigned to the created input source.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ConflictException
- `484` — ServiceQuotaExceededException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/resiliencehubv2.md) · [All operations](https://skmtc.net/aws/apis/resiliencehubv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/resiliencehubv2/versions/27331d252935/schema)
