|
@@ -4,6 +4,11 @@ resource "aws_placement_group" "interconnects" {
|
|
|
strategy = "spread"
|
|
|
}
|
|
|
|
|
|
+data "aws_security_group" "aws_endpoints_sg" {
|
|
|
+ name = "aws_endpoints"
|
|
|
+ vpc_id = var.security_vpc
|
|
|
+}
|
|
|
+
|
|
|
module "typical_host_security_group" {
|
|
|
source = "../../submodules/security_group/typical_host"
|
|
|
|
|
@@ -12,6 +17,7 @@ module "typical_host_security_group" {
|
|
|
tags = merge(var.standard_tags, var.tags)
|
|
|
aws_region = var.aws_region
|
|
|
aws_partition = var.aws_partition
|
|
|
+ aws_endpoints_sg = data.aws_security_group.aws_endpoints_sg.id
|
|
|
}
|
|
|
|
|
|
resource "aws_network_interface" "interconnects" {
|