Skip to content

Commit

Permalink
Temporarily comment out eip configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Oct 16, 2024
1 parent 7c8a11e commit 50a0c2c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions web/deploy/terraform/modules/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ resource "aws_instance" "deployment" {
user_data = file("${path.module}/scripts/install-docker.sh")
}

resource "aws_eip" "deployment" {
domain = var.eip_domain

tags = {
Name = var.environment
}
}

resource "aws_eip_association" "deployment" {
instance_id = aws_instance.deployment.id
allocation_id = aws_eip.deployment.id
}
# resource "aws_eip" "deployment" {
# domain = var.eip_domain

# tags = {
# Name = var.environment
# }
# }

# resource "aws_eip_association" "deployment" {
# instance_id = aws_instance.deployment.id
# allocation_id = aws_eip.deployment.id
# }
12 changes: 6 additions & 6 deletions web/deploy/terraform/modules/ec2/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ output "instance_id" {
value = aws_instance.deployment.id
}

output "public_dns" {
value = aws_eip.deployment.public_dns
}
# output "public_dns" {
# value = aws_eip.deployment.public_dns
# }

output "public_ip" {
value = aws_eip.deployment.public_ip
}
# output "public_ip" {
# value = aws_eip.deployment.public_ip
# }
10 changes: 5 additions & 5 deletions web/deploy/terraform/modules/ec2/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ variable "ec2_root_block_device_type" {
type = string
}

variable "eip_domain" {
description = "Indicates if this EIP is for use in VPC"
default = "vpc"
type = string
}
# variable "eip_domain" {
# description = "Indicates if this EIP is for use in VPC"
# default = "vpc"
# type = string
# }

variable "ubuntu_ami_release" {
description = "The release of Ubuntu to use for the EC2 AMI. E.g. 20.04, 22.04, 24.04"
Expand Down

0 comments on commit 50a0c2c

Please sign in to comment.