Skip to content

Added private_dns and private_ip to output #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 5, 2017
Merged

Conversation

s2504s
Copy link
Contributor

@s2504s s2504s commented Sep 4, 2017

##What

  • Added private_dns and private_ip to output

Why

  • We need it to use with other modules

@s2504s s2504s self-assigned this Sep 4, 2017
value = "${aws_instance.default.private_ip}"
}

output "private_dns" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm torn. In the past, I've said use the original resource name (in this case private_dns). However, we're using public_hostname below. I think we should use one convention or another, but not both.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I defer to @comeanother to pick the right convention.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use the original resource name. I'll rename the variable public_hostname to public_dns

Copy link
Member

@osterman osterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming convention

@s2504s s2504s merged commit cdc6162 into master Sep 5, 2017
@s2504s s2504s deleted the output_private_ip branch September 5, 2017 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants