Skip to content

Instantly share code, notes, and snippets.

@ryan-blunden
Last active March 23, 2020 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryan-blunden/4c8e4d6e037427e901ca46eb47bcb6b7 to your computer and use it in GitHub Desktop.
Save ryan-blunden/4c8e4d6e037427e901ca46eb47bcb6b7 to your computer and use it in GitHub Desktop.
Deploy Sourcegraph on AWS using Terraform
module "sourcegraph" {
source = "github.com/sourcegraph/deploy-sourcegraph-aws"
vpc_id = "vpc-b3708ed4"
subnet_id = "subnet-091a876e"
app_name = "sourcegraph-demo"
instance_type = "t2.xlarge"
key_name = "ryan-blunden"
}
output "instance_id" {
value = "${module.sourcegraph.instance_id}"
}
output "server_url" {
value = "${module.sourcegraph.server_url}"
}
output "server_ip" {
value = "${module.sourcegraph.server_ip}"
}
output "ssh" {
value = module.sourcegraph.ssh
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment