ArgoCD
This module deploys ArgoCD supporting resources for the hub or spoke. All the necessary IAM roles and policies.
Examples
Hub
The hub is the controller that manages the spoke clusters. This is where the applications are defined and synced to the spoke clusters.
module "hub" {
source = "./.."
enable_hub = true
cluster_name = "example-cluster"
}
Spoke
The spoke is the controller that manages the applications on the cluster. This is where the applications are deployed and synced from the hub.
module "spoke" {
source = "./.."
enable_spoke = true
cluster_name = "example-cluster"
hub_iam_role_arn = "arn:aws:iam::123456789012:role/argocd-example-cluster-hub"
}
Requirements
Providers
Modules
No modules.
Resources
Name |
Description |
Type |
Default |
Required |
cluster_name |
Name of the EKS cluster |
string |
n/a |
yes |
create |
Create the ArgoCD resources |
bool |
true |
no |
enable_hub |
Enable ArgoCD Hub |
bool |
false |
no |
enable_spoke |
Enable ArgoCD Spoke |
bool |
false |
no |
hub_iam_role_arn |
(Deprecated, use hub_iam_role_arns) IAM Role ARN for ArgoCD Hub. This is required for spoke clusters |
string |
null |
no |
hub_iam_role_arns |
A list of ArgoCD Hub IAM Role ARNs, enabling hubs to access spoke clusters. This is required for spoke clusters. |
list(string) |
null |
no |
hub_iam_role_name |
IAM Role Name for ArgoCD Hub. This is referenced by the Spoke clusters |
string |
"argocd-controller" |
no |
namespace |
Namespace to deploy ArgoCD |
string |
"argocd" |
no |
tags |
A map of tags to add to all resources |
map(string) |
{} |
no |
Outputs