MOTOSHARE 🚗🏍️

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

Terraform Error: Duplicate output definition

Uncategorized

Error

│ Error: Duplicate output definition
│
│   on aws.tf line 14:
│   14: output "instance_public_ip" {
│
│ An output named "instance_public_ip" was already defined at aws.tf:10,1-28. Output names must be unique within a
│ module.


output "instance_public_ip" {
  value = aws_instance.web.public_ip
}

output "instance_public_ip" {
  value = aws_instance.web.security_groups[0]
}

Solution

to 


output "instance_public_ip" {
  value = aws_instance.web.public_ip
}

output "instance_public_sg" {
  value = aws_instance.web.security_groups[0]
}
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x