diff --git a/docs/self-hosted/executors/deploy-executors-terraform-aws.mdx b/docs/self-hosted/executors/deploy-executors-terraform-aws.mdx new file mode 100644 index 000000000..eeb50d724 --- /dev/null +++ b/docs/self-hosted/executors/deploy-executors-terraform-aws.mdx @@ -0,0 +1,346 @@ +# Deploying Sourcegraph executors using Terraform on AWS + +A [Terraform module](https://github.com/sourcegraph/terraform-aws-executors) is provided to +provision machines running executors on AWS. + +See also: [Deploying on Google Cloud](/self-hosted/executors/deploy-executors-terraform-gcp) + +## Basic Definition + +The following is the minimum required definition to deploy an executor on AWS. + +```terraform +module "executors" { + source = "sourcegraph/executors/aws" + + # Find the latest version matching your Sourcegraph version here: + # https://github.com/sourcegraph/terraform-aws-executors/tags + version = "" + + availability_zone = "" + + executor_sourcegraph_external_url = "" + executor_sourcegraph_executor_proxy_password = "" + + # Either: + executor_queue_name = "" + # Or: + executor_queue_names = ["codeintel", "batches"] + + executor_instance_tag = "" + executor_metrics_environment_label = "