Last active
April 29, 2019 15:30
-
-
Save hervekhg/42567e04ddd42975c520ced65b1ea44e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------- | |
# Security Group Rules For Lambda Backend | |
# --------------------------------------------------------------- | |
resource "aws_security_group_rule" "sg-lambda-backend-egress-rule" { | |
from_port = "0" | |
protocol = "-1" | |
to_port = "0" | |
cidr_blocks = ["0.0.0.0/0"] | |
security_group_id = "${aws_security_group.sg-lambda.id}" | |
type = "egress" | |
} | |
# -------------------------------------------------------------- | |
# Security Group for Lambda | |
# --------------------------------------------------------------- | |
resource "aws_security_group" "sg-lambda" { | |
vpc_id = "${data.terraform_remote_state.network.aws_vpc_id}" | |
name = "${data.consul_keys.ck.var.project_name}-${var.install_name}-${var.env}.lambda-backend" | |
description = "Security group for Lambda Backend" | |
tags { | |
BillingBusinessApp = "${data.consul_keys.ck.var.project_name}" | |
env = "${var.env}" | |
resource-name = "${data.consul_keys.ck.var.project_name}-${var.install_name}-${var.env}" | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment