Skip to content

Instantly share code, notes, and snippets.

View swade1987's full-sized avatar

Steve Wade swade1987

View GitHub Profile
resource "aws_security_group" "gocd_elb" {
name = "gocd-agent-ui-elb-sg"
description = "Security group for the gocd UI ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "gocd agent (ELB)"
}
# HTTP
resource "aws_security_group" "gocd_agent_elb" {
name = "gocd-agent-elb-sg"
description = "Security group for the gocd agent ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "gocd agent (ELB)"
}
# HTTP - SSL (SERVER TO AGENT)
rresource "aws_security_group" "gocd_agent_elb" {
name = "gocd-agent-elb-sg"
description = "Security group for the gocd agent ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "gocd agent (ELB)"
}
# HTTP
resource "aws_security_group" "bamboo_elb" {
name = "bamboo-ui-elb-sg"
description = "Security group for the bamboo UI ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "bamboo (ELB)"
}
# Bamboo traffic - HTTP
resource "aws_security_group" "bamboo_elb" {
name = "bamboo-ui-elb-sg"
description = "Security group for the bamboo UI ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "bamboo (ELB)"
}
# Bamboo traffic - HTTP
resource "aws_security_group" "bamboo_elb" {
name = "bamboo-ui-elb-sg"
description = "Security group for the bamboo UI ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "bamboo (ELB)"
}
# Bamboo traffic - HTTP
resource "aws_security_group" "bamboo_elb" {
name = "bamboo-ui-elb-sg"
description = "Security group for the bamboo UI ELBs"
vpc_id = "${var.vpc_id}"
tags {
Name = "bamboo (ELB)"
}
# Bamboo traffic - HTTP
resource "aws_elb" "bamboo_elb" {
name = "bamboo-elb"
subnets = ["${split(",", var.public_subnets)}"]
security_groups = ["${aws_security_group.bamboo_elb.id}"]
cross_zone_load_balancing = true
connection_draining = true
# Bamboo traffic - HTTP 80 -> 8085
listener {
{
"Statement": [
{
"Effect": "Allow",
"Resource": [
"*"
],
"Action": [
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeAutoScalingInstances",
---
driver_config:
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY'] %>
aws_secret_access_key: <%= ENV['AWS_SECRET_KEY'] %>
aws_ssh_key_id: eu-west-1
provisioner:
name: chef_zero
require_chef_omnibus: latest