Open wesbragagt opened 2 months ago
I believe that this is already supported through the variable event_source_spec
module "event_source" {
source = "${var.pf_module_source}kube_argo_event_source${var.pf_module_ref}"
...
event_source_spec = {
template = {
serviceAccountName = kubernetes_service_account.event_source.metadata[0].name
}
...
}
Prior Search
What new functionality would you like to see?
In order to allow the Argo event-source pods to subscribe to queues and topics I would like to be able to pass a var.aws_permissions similar to how the wf_spec module handles that support.
How would you use this new functionality?
I would use this functionality to trigger workflows based on SQS messages.
I've cloned the kube_argo_event_source and edited so I could pass a var.aws_permissions as json to the module where it handles the creation of the service account and using the kube_sa_aws_auth module.
I referenced this documentation from Argo in order to do pass a serviceAccountName in the spec.
Example