Skip to content

Instantly share code, notes, and snippets.

@lawliet89
Created September 3, 2018 04:43
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 lawliet89/83e5885a2df80d313fe4221011727aad to your computer and use it in GitHub Desktop.
Save lawliet89/83e5885a2df80d313fe4221011727aad to your computer and use it in GitHub Desktop.
Terraform Demo Snippet
resource "aws_lb" "lb" {
name = "${var.lb_name}"
security_groups = ["${aws_security_group.lb.id}"]
subnets = ["${var.subnet_ids}"]
tags = "${merge(var.tags, map("Name", "${var.lb_name}"))}"
}
resource "aws_security_group" "lb" {
name = "${var.lb_name}"
description = "Security group for Comicchat Load balancer"
vpc_id = "${var.vpc_id}"
tags = "${merge(var.tags, map("Name", "${var.lb_name}"))}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment