Skip to content

Commit 2107431

Browse files
authored
feat: remove unused AWS Elastic IP resource (#16)
1 parent 3486612 commit 2107431

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

aws.tf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,6 @@ locals {
245245
aws_iam_instance_profile_arn_encoded = urlencode(aws_iam_instance_profile.automq_byoc_instance_profile.arn)
246246
}
247247

248-
resource "aws_eip" "web_ip" {
249-
instance = aws_instance.automq_byoc_console.id
250-
251-
tags = {
252-
automqVendor = "automq"
253-
automqEnvironmentID = var.automq_byoc_env_id
254-
}
255-
}
256-
257248
locals {
258249
public_subnet_id = var.create_new_vpc ? module.automq_byoc_vpc[0].public_subnets[0] : var.automq_byoc_env_console_public_subnet_id
259250
}

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ output "automq_byoc_env_id" {
55

66
output "automq_byoc_endpoint" {
77
description = "The endpoint for the AutoMQ environment console. Users can set this endpoint to the AutoMQ Terraform Provider to manage resources through Terraform. Additionally, users can access this endpoint via web browser, log in, and manage resources within the environment using the WebUI."
8-
value = "http://${aws_eip.web_ip.public_ip}:8080"
8+
value = "http://${aws_instance.automq_byoc_console.public_ip}:8080"
99
}
1010

1111
output "automq_byoc_initial_username" {
@@ -41,7 +41,7 @@ output "automq_byoc_ops_bucket_name" {
4141
4242
output "automq_byoc_env_console_ec2_instance_ip" {
4343
description = "The instance IP of the deployed AutoMQ BYOC control panel. You can access the service through this IP."
44-
value = aws_eip.web_ip.public_ip
44+
value = aws_instance.automq_byoc_console.public_ip
4545
}
4646
4747
output "automq_byoc_env_console_public_subnet_id" {

0 commit comments

Comments
 (0)