Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created February 24, 2016 11:30
Show Gist options
  • Save swade1987/8b7830031e44038bd591 to your computer and use it in GitHub Desktop.
Save swade1987/8b7830031e44038bd591 to your computer and use it in GitHub Desktop.
bamboo server terraform
resource "aws_instance" "bamboo" {
instance_type = "t2.medium"
ami = "${lookup(var.aws_amis, var.aws_region)}"
key_name = "${var.key_name}"
subnet_id = "${module.base.default_subnet_id}"
vpc_security_group_ids = ["${module.base.default_security_group_id}", "${module.base.external_connections_security_group_id}"]
tags {
Name = "bamboo"
}
provisioner "chef" {
environment = "core-services"
run_list = ["bamboo-server::default"]
node_name = "bamboo-server"
server_url = "https://api.chef.io/organizations/parliamentary-digital-service"
validation_client_name = "parliamentary-digital-service-validator"
validation_key = "${file("../files/parliamentary-digital-service-validator.pem")}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment