mirror of
https://github.com/Telecominfraproject/wlan-toolsmith.git
synced 2025-11-03 04:18:09 +00:00
Fix Terraform syntax
Signed-off-by: Johann Hoffmann <johann.hoffmann@mailbox.org>
This commit is contained in:
@@ -20,7 +20,7 @@ data "aws_ami" "ubuntu" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data "template_file" "ananda_install" {
|
data "template_file" "ananda_install" {
|
||||||
template = "${file("templates/install_ananda.sh.tpl")}"
|
template = file("templates/install_ananda.sh.tpl")
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
aws_vpc_gateway_token = data.sops_file.aws_vpc_gateway_token.data["aws_vpc_gateway_token"]
|
aws_vpc_gateway_token = data.sops_file.aws_vpc_gateway_token.data["aws_vpc_gateway_token"]
|
||||||
@@ -45,39 +45,39 @@ resource "aws_secretsmanager_secret_version" "ananda_gateway_wifi_6195_key" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_security_group" "ananda_aws_vpc_gateway" {
|
resource "aws_security_group" "ananda_aws_vpc_gateway" {
|
||||||
name = "Ananda AWS VPC gateway"
|
name = "Ananda AWS VPC gateway"
|
||||||
vpc_id = module.vpc_main.vpc_id
|
vpc_id = module.vpc_main.vpc_id
|
||||||
|
|
||||||
ingress {
|
ingress {
|
||||||
description = "Allow ICMP"
|
description = "Allow ICMP"
|
||||||
from_port = -1
|
from_port = -1
|
||||||
to_port = -1
|
to_port = -1
|
||||||
protocol = "icmp"
|
protocol = "icmp"
|
||||||
cidr_blocks = ["0.0.0.0/0"]
|
cidr_blocks = ["0.0.0.0/0"]
|
||||||
}
|
}
|
||||||
|
|
||||||
ingress {
|
ingress {
|
||||||
description = "Public SSH access"
|
description = "Public SSH access"
|
||||||
from_port = 22
|
from_port = 22
|
||||||
to_port = 22
|
to_port = 22
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
cidr_blocks = ["0.0.0.0/0"]
|
cidr_blocks = ["0.0.0.0/0"]
|
||||||
}
|
}
|
||||||
|
|
||||||
ingress {
|
ingress {
|
||||||
description = "Allow any inbound traffic from VPC network"
|
description = "Allow any inbound traffic from VPC network"
|
||||||
from_port = 0
|
from_port = 0
|
||||||
to_port = 0
|
to_port = 0
|
||||||
protocol = "-1"
|
protocol = "-1"
|
||||||
cidr_blocks = [var.vpc_cidr]
|
cidr_blocks = [var.vpc_cidr]
|
||||||
}
|
}
|
||||||
|
|
||||||
egress {
|
egress {
|
||||||
description = "Allow all outbound traffic"
|
description = "Allow all outbound traffic"
|
||||||
from_port = 0
|
from_port = 0
|
||||||
to_port = 0
|
to_port = 0
|
||||||
protocol = "-1"
|
protocol = "-1"
|
||||||
cidr_blocks = ["0.0.0.0/0"]
|
cidr_blocks = ["0.0.0.0/0"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ resource "aws_instance" "ananda_aws_vpc_gateway" {
|
|||||||
subnet_id = module.vpc_main.public_subnets[0]
|
subnet_id = module.vpc_main.public_subnets[0]
|
||||||
vpc_security_group_ids = [aws_security_group.ananda_aws_vpc_gateway.id]
|
vpc_security_group_ids = [aws_security_group.ananda_aws_vpc_gateway.id]
|
||||||
key_name = aws_key_pair.ananda_gateway_wifi_6195.id
|
key_name = aws_key_pair.ananda_gateway_wifi_6195.id
|
||||||
user_data = "${data.template_file.ananda_install.rendered}"
|
user_data = data.template_file.ananda_install.rendered
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
ignore_changes = [ami]
|
ignore_changes = [ami]
|
||||||
|
|||||||
Reference in New Issue
Block a user