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]
}
Latest posts by rajeshkumar (see all)
- Sonarqube: java.lang.IllegalStateException: Error status returned by url 401 - September 9, 2024
- SonarQube Error: Error status returned by url [https://api.sonarcloud.io - September 5, 2024
- AWS SES Errors and Solution - September 2, 2024