Skip to content

Commit

Permalink
adding cidr block for allowing vpn access
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-henry-he committed Aug 5, 2020
1 parent bbef4a7 commit 3613a1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ resource "aws_security_group" "default" {
to_port = var.database_port
protocol = "tcp"
security_groups = var.security_group_ids
cidr_blocks = var.cidr_blocks
}

egress {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ variable "security_group_ids" {
description = "The IDs of the security groups from which to allow `ingress` traffic to the DB instance"
}

variable "cidr_blocks" {
type = list(string)
default = []
description = "The cidr blocks from which to allow `ingress` traffic to the DB instance"
}

variable "associate_security_group_ids" {
type = list(string)
default = []
Expand Down

0 comments on commit 3613a1d

Please sign in to comment.