Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Defining Outputs

Sumit Rawal answered on May 14, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Java Create an OutputStream
  • outputs i angular
  • Viewing Outputs

  • Defining Outputs

    0

    Let’s define an output to show us the public IP address of the elastic IP address that we create. Add this to any of your *.tf files:

    output “ip” {

    value = “${aws_eip.ip.public_ip}”

    }

    This defines an output variable named “ip”. The name of the variable must conform to Terraform variable naming conventions if it is to be used as an input to other modules. The value field specifies what the value will be, and almost always contains one or more interpolations, since the output data is typically dynamic. In this case, we’re outputting the public_ip attribute of the elastic IP address.

    Multiple output blocks can be defined to specify multiple output variables.

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on May 14 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.