Skip to content

Day 3: Newer terraform versions need module outputs specified in the root terraform file #119

@sam112eer

Description

@sam112eer

Newer terraform versions do not support module output files explicitly.
see: hashicorp/terraform#22126

Therefore, adding these lines to root main.tf fixes the output visibility issue

add to root main.tf

output "ec2_instance_public_ip" { value = module.ec2_instance.public-ip-address }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions