

 **Help improve this page** 

To contribute to this user guide, choose the **Edit this page on GitHub** link that is located in the right pane of every page.

# Argo CD considerations

This topic covers important considerations for using the EKS Capability for Argo CD, including planning, permissions, authentication, and multi-cluster deployment patterns.

## Planning
<a name="_planning"></a>

Before deploying Argo CD, consider the following:

 **Repository strategy**: Determine where your application manifests will be stored (CodeCommit, GitHub, GitLab, Bitbucket). Plan your repository structure and branching strategy for different environments.

 **RBAC strategy**: Plan which teams or users should have admin, editor, or viewer access. Map these to AWS Identity Center groups or Argo CD roles.

 **Multi-cluster architecture**: Determine if you will manage multiple clusters from a single Argo CD instance. Consider using a dedicated management cluster for Argo CD.

 **Application organization**: Plan how you will structure Applications and ApplicationSets. Consider using projects to organize applications by team or environment.

 **Sync policies**: Decide whether applications should sync automatically or require manual approval. Automated sync is common for development, manual for production.

## Permissions
<a name="_permissions"></a>

For detailed information about IAM Capability Roles, trust policies, and security best practices, see [Amazon EKS capability IAM role](capability-role.md) and [Security considerations for EKS Capabilities](capabilities-security.md).

### IAM Capability Role overview
<a name="_iam_capability_role_overview"></a>

When you create an Argo CD capability resource, you provide an IAM Capability Role. Unlike ACK, Argo CD primarily manages Kubernetes resources, not AWS resources directly. However, the IAM Capability Role is required for:
+ Accessing private Git repositories in CodeCommit
+ Integrating with AWS Identity Center for authentication
+ Accessing secrets in AWS Secrets Manager (if configured)
+ Cross-cluster deployments to other EKS clusters

### CodeCommit integration
<a name="_codecommit_integration"></a>

If you’re using CodeCommit repositories, attach a policy with read permissions:

```json
{
  "Version": "2012-10-17",		 	 	 
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "codecommit:GitPull"
      ],
      "Resource": "*"
    }
  ]
}
```

**Important**  
For production use, restrict the `Resource` field to specific repository ARNs instead of using `"*"`.  
Example:  

```json
"Resource": "arn:aws:codecommit:us-west-2:111122223333:my-app-repo"
```
This limits the Argo CD capability’s access to only the repositories it needs to manage.

### Secrets Manager integration
<a name="_secrets_manager_integration"></a>

If you’re storing repository credentials in Secrets Manager, attach the managed policy for read access:

```text
arn:aws:iam::aws:policy/AWSSecretsManagerClientReadOnlyAccess
```

This policy includes the necessary permissions: `secretsmanager:GetSecretValue`, `secretsmanager:DescribeSecret`, and KMS decrypt permissions.

### Basic setup
<a name="_basic_setup"></a>

For basic Argo CD functionality with public Git repositories, no additional IAM policies are required beyond the trust policy.

## Authentication
<a name="_authentication"></a>

### AWS Identity Center integration
<a name="shared_aws_identity_center_integration"></a>

The Argo CD managed capability integrates directly with AWS Identity Center (formerly AWS SSO), enabling you to use your existing identity provider for authentication.

When you configure AWS Identity Center integration:

1. Users access the Argo CD UI through the EKS console

1. They authenticate using AWS Identity Center (which can federate to your corporate identity provider)

1.  AWS Identity Center provides user and group information to Argo CD

1. Argo CD maps users and groups to RBAC roles based on your configuration

1. Users see only the applications and resources they have permission to access

### Simplifying access with Identity Center permission sets
<a name="_simplifying_access_with_identity_center_permission_sets"></a>

 AWS Identity Center provides two distinct authentication paths when working with Argo CD:

 **Argo CD API authentication**: Identity Center provides SSO authentication to the Argo CD UI and API. This is configured through the Argo CD capability’s RBAC role mappings.

 **EKS cluster access**: The Argo CD capability uses the customer-provided IAM role to authenticate with EKS clusters through access entries. These access entries can be manually configured to add or remove permissions.

You can use [Identity Center permission sets](https://docs.aws.amazon.com/singlesignon/latest/userguide/howtocreatepermissionset.html) to simplify identity management by allowing a single identity to access both Argo CD and EKS clusters. This reduces overhead by requiring you to manage only one identity across both systems, rather than maintaining separate credentials for Argo CD access and cluster access.

### RBAC role mappings
<a name="_rbac_role_mappings"></a>

Argo CD has built-in roles that you can map to AWS Identity Center users and groups:

 **ADMIN**: Full access to all applications and settings. Can create, update, and delete applications. Can manage Argo CD configuration.

 **EDITOR**: Can create and modify applications. Cannot change Argo CD settings or delete applications.

 **VIEWER**: Read-only access to applications. Can view application status and history. Cannot make changes.

**Note**  
Role names are case-sensitive and must be uppercase (ADMIN, EDITOR, VIEWER).

**Important**  
EKS Capabilities integration with AWS Identity Center supports up to 1,000 identities per Argo CD capability. An identity can be a user or a group.

## Multi-cluster deployments
<a name="_multi_cluster_deployments"></a>

The Argo CD managed capability supports multi-cluster deployments, enabling you to manage applications across development, staging, and production clusters from a single Argo CD instance.

### How multi-cluster works
<a name="_how_multi_cluster_works"></a>

When you register additional clusters with Argo CD:

1. You create cluster secrets that reference target EKS clusters by ARN

1. You create Applications or ApplicationSets that target different clusters

1. Argo CD connects to each cluster to deploy and watch resources

1. You view and manage all clusters from a single Argo CD UI

### Prerequisites for multi-cluster
<a name="_prerequisites_for_multi_cluster"></a>

Before registering additional clusters:
+ Create an Access Entry on the target cluster for the Argo CD capability role
+ Ensure network connectivity between the Argo CD capability and target clusters
+ Verify IAM permissions to access the target clusters

### Register a cluster
<a name="_register_a_cluster"></a>

Register clusters using Kubernetes Secrets in the `argocd` namespace.

Get the target cluster ARN. Replace {{region-code}} with the AWS Region that your target cluster is in and replace {{target-cluster}} with the name of your target cluster.

```bash
aws eks describe-cluster \
  --region {{region-code}} \
  --name {{target-cluster}} \
  --query 'cluster.arn' \
  --output text
```

Create a cluster secret using the cluster ARN:

```yaml
apiVersion: v1
kind: Secret
metadata:
  name: target-cluster
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: cluster
type: Opaque
stringData:
  name: target-cluster
  server: arn:aws:eks:us-west-2:111122223333:cluster/target-cluster
  project: default
```

**Important**  
Use the EKS cluster ARN in the `server` field, not the Kubernetes API server URL. The managed capability requires ARNs to identify target clusters.

Apply the secret:

```bash
kubectl apply -f cluster-secret.yaml
```

### Configure Access Entry on target cluster
<a name="_configure_access_entry_on_target_cluster"></a>

The target cluster must have an access entry for the Argo CD capability role, with an access policy that grants the role permission to deploy applications. Replace {{region-code}} with the AWS Region that your target cluster is in, replace {{target-cluster}} with the name of your target cluster, and replace the ARN with your Argo CD capability role ARN.

#### Step 1: Create the access entry
<a name="_step_1_create_the_access_entry"></a>

The access entry lets the Argo CD capability role authenticate to the target cluster. It grants no Kubernetes permissions until you associate an access policy in the next step. Run the following command to create the access entry.

```bash
aws eks create-access-entry \
  --region {{region-code}} \
  --cluster-name {{target-cluster}} \
  --principal-arn {{arn:aws:iam::111122223333:role/ArgoCDCapabilityRole}} \
  --type STANDARD
```

#### Step 2: Associate the cluster admin access policy
<a name="_step_2_associate_the_cluster_admin_access_policy"></a>

Associating the `AmazonEKSClusterAdminPolicy` policy grants the Argo CD role cluster-wide admin access. Run the following command to apply this policy.

**Important**  
 `AmazonEKSClusterAdminPolicy` provides full cluster-admin access. Use it to get started, not in production. For production use, we recommend granting narrower permissions. You can associate `AmazonEKSAdminPolicy` or `AmazonEKSEditPolicy` scoped to specific namespaces (`--access-scope type=namespace,namespaces={{namespace-name}} `), or add Kubernetes groups to the access entry and bind them to your own `Role` or `ClusterRole` objects. Namespace-scoped policies don’t allow creating namespaces or CRDs, so Applications that create them fail to sync.

```bash
aws eks associate-access-policy \
  --region {{region-code}} \
  --cluster-name {{target-cluster}} \
  --principal-arn {{arn:aws:iam::111122223333:role/ArgoCDCapabilityRole}} \
  --policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy \
  --access-scope type=cluster
```

### Private cluster access
<a name="_private_cluster_access"></a>

The Argo CD managed capability can deploy to fully private EKS clusters without requiring VPC peering or specialized networking configuration. AWS manages connectivity between the Argo CD capability and private remote clusters automatically. Ensure your repository access controls and Argo CD RBAC policies are properly configured.

### Cross-account deployments
<a name="_cross_account_deployments"></a>

For cross-account deployments, add the Argo CD IAM Capability Role from the source account to the target cluster’s EKS Access Entry:

1. In the target account, create an Access Entry on the target EKS cluster

1. Use the Argo CD IAM Capability Role ARN from the source account as the principal

1. Configure appropriate Kubernetes RBAC permissions for the Access Entry

1. Register the target cluster in Argo CD using its EKS cluster ARN

No additional IAM role creation or trust policy configuration is required—EKS Access Entries handle cross-account access.

## Best practices
<a name="_best_practices"></a>

 **Use declarative sources as the source of truth**: Store all your application manifests in declarative sources (Git repositories, Helm registries, or OCI images), enabling version control, audit trails, and collaboration.

 **Implement proper RBAC**: Use AWS Identity Center integration to control who can access and manage applications in Argo CD. Argo CD supports fine-grained access control to resources within Applications (Deployments, Pods, ConfigMaps, Secrets).

 **Use ApplicationSets for multi-environment deployments**: Use ApplicationSets to deploy applications across multiple clusters or namespaces with different configurations.

## Lifecycle management
<a name="_lifecycle_management"></a>

### Application sync policies
<a name="_application_sync_policies"></a>

Control how Argo CD syncs applications:

 **Manual sync**: Applications require manual approval to sync changes. Recommended for **production** environments.

 **Automatic sync**: Applications automatically sync when Git changes are detected. Common for development and staging environments.

 **Self-healing**: Automatically revert manual changes made to the cluster. Ensures cluster state matches Git.

 **Pruning**: Automatically delete resources removed from Git. Use with caution as this can delete resources.

### Application health
<a name="_application_health"></a>

Argo CD continuously monitors application health:
+  **Healthy**: All resources are running as expected
+  **Progressing**: Resources are being created or updated
+  **Degraded**: Some resources are not healthy
+  **Suspended**: Application is paused
+  **Missing**: Resources are missing from the cluster

### Sync windows
<a name="_sync_windows"></a>

Configure sync windows to control when applications can be synced:
+ Allow syncs only during maintenance windows
+ Block syncs during business hours
+ Schedule automatic syncs for specific times
+ Use sync windows in situations where you need to make changes and stop any syncs (break-glass scenarios)

## Webhook configuration for faster sync
<a name="argocd-webhooks"></a>

By default, Argo CD polls Git repositories every 6 minutes to detect changes. For more responsive deployments, configure Git webhooks to trigger immediate syncs when changes are pushed.

Webhooks provide several benefits:
+ Immediate sync response when code is pushed (seconds vs minutes)
+ Reduced polling overhead and improved system performance
+ More efficient use of API rate limits
+ Better user experience with faster feedback

### Webhook endpoints
<a name="_webhook_endpoints"></a>

The capability serves two webhook receivers on your Argo CD server URL: one refreshes Applications, and one refreshes ApplicationSet generators. To find your server URL, see [Argo CD endpoint URL](working-with-argocd.md#argocd-endpoint-url).


| Refreshes | Path | 
| --- | --- | 
| Applications |  `${serverUrl}/api/webhook`  | 
| ApplicationSet generators, such as the Git generator |  `${serverUrl}/api/applicationset/webhook`  | 

For example, if your Argo CD server URL is `https://my-argocd-dc855fdf-111122223333.eks-capabilities.us-west-2.amazonaws.com`, the webhook URLs are:

```text
https://my-argocd-dc855fdf-111122223333.eks-capabilities.us-west-2.amazonaws.com/api/webhook
https://my-argocd-dc855fdf-111122223333.eks-capabilities.us-west-2.amazonaws.com/api/applicationset/webhook
```

A push to a repository that feeds both an Application and an ApplicationSet generator needs both webhooks. Add them as two separate webhooks in your Git provider, each pointing at its own path.

**Note**  
The ApplicationSet path differs from upstream Argo CD. Upstream serves both receivers on `/api/webhook` and tells them apart by hostname, which requires a second Ingress. Because each Argo CD instance has one hostname, the capability serves the ApplicationSet receiver on its own path instead.

### Webhook shared secret
<a name="argocd-webhook-secret"></a>

To have Argo CD verify that a payload came from your Git provider, store a shared secret in the `argocd-webhook-creds-secret` Secret in your Argo CD namespace, and configure the same value in your Git provider. Both webhook receivers read this Secret, so one value covers Applications and ApplicationSet generators.

```yaml
apiVersion: v1
kind: Secret
metadata:
  name: argocd-webhook-creds-secret
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: webhook
type: Opaque
stringData:
  webhook.github.secret: my-github-webhook-secret
  webhook.gitlab.secret: my-gitlab-webhook-secret
```

Set the key that matches your Git provider:

 `webhook.github.secret`   
The secret you configured on the GitHub webhook.

 `webhook.gitlab.secret`   
The secret token you configured on the GitLab webhook.

 `webhook.bitbucketserver.secret`   
The secret you configured on the Bitbucket Server webhook.

 `webhook.bitbucket.uuid`   
The UUID of your Bitbucket Cloud workspace.

The Secret accepts the same key names as upstream Argo CD, including keys for providers not listed here.

**Important**  
Upstream Argo CD reads these keys from `argocd-secret`. The capability reads them from `argocd-webhook-creds-secret` instead, so that you can manage webhook credentials without access to the Argo CD server’s signing key and TLS material. Setting these keys in `argocd-secret` has no effect.

### Configure webhooks by Git provider
<a name="_configure_webhooks_by_git_provider"></a>

 **GitHub**: In your repository settings, add a webhook with the Argo CD webhook URL. Set the content type to `application/json` and select "Just the push event".

 **GitLab**: In your project settings, add a webhook with the Argo CD webhook URL. Enable "Push events" and optionally "Tag push events".

 **Bitbucket**: In your repository settings, add a webhook with the Argo CD webhook URL. Select "Repository push" as the trigger.

 **CodeCommit**: Create an Amazon EventBridge rule that triggers on CodeCommit repository state changes and sends notifications to the Argo CD webhook endpoint.

For detailed webhook configuration instructions, see [Argo CD Webhook Configuration](https://argo-cd.readthedocs.io/en/stable/operator-manual/webhook/). When you follow those instructions, store the shared secret as described in [Webhook shared secret](#argocd-webhook-secret) rather than in `argocd-secret`.

For more information about which Git providers the ApplicationSet receiver supports, see [Git Generator](https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Generators-Git/) in the Argo CD documentation.

**Note**  
Webhooks complement polling—they do not replace it. Argo CD continues to poll repositories as a fallback mechanism in case webhook notifications are missed.

## Next steps
<a name="_next_steps"></a>
+  [Working with Argo CD](working-with-argocd.md) - Learn how to create and manage Argo CD Applications
+  [Troubleshoot issues with Argo CD capabilities](argocd-troubleshooting.md) - Troubleshoot Argo CD issues
+  [Working with capability resources](working-with-capabilities.md) - Manage your Argo CD capability resource