

# Add input sources to a service
<a name="next-gen-add-input-source"></a>

**To add an input source (console)**

1. Open the Next generation Resilience Hub console and navigate to your service.

1. Choose the **Configuration** tab.

1. Choose **Edit** in the **Service resource discovery** section.

1. Select the input source type and provide the required configuration:
   + **AWS CloudFormation stack** – Select one or more AWS CloudFormation stacks. The selector will show stacks relevant to the Regions you have selected for this service.
   + **Terraform state file** – Enter the Amazon S3 URL of the state file.
   + **Resource tags** – Enter the tag key and values to match.
   + **Amazon EKS cluster** – Enter the cluster ARN and select the namespaces to include. Optionally, add a label selector to discover only the Kubernetes objects whose labels match. For information about the selector syntax, see [EksSource](https://docs.aws.amazon.com/resilience-hub/v2/APIReference/API_EksSource.html) in the *Next generation Resilience Hub API Reference*.
**Note**  
the next generation of Resilience Hub supports public, private, and CIDR-restricted Amazon EKS clusters. A cluster with `endpointPublicAccess=false` requires no VPC endpoint, AWS PrivateLink, peering, or VPN to be discovered. You do not need to change your cluster's network configuration or security baseline.

1. Choose **Add**.

**To add an input source (AWS CLI)**
+ Run the following command:

  ```
  aws resiliencehubv2 create-input-source \
    --service-arn "{{service-arn}}" \
    --resource-configuration '{"cfnStackArn": "{{stack-arn}}"}'
  ```