Skip to content
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

fix typo #3

Merged
merged 5 commits into from
Jun 15, 2018
Merged

fix typo #3

merged 5 commits into from
Jun 15, 2018

Conversation

sarkis
Copy link
Contributor

@sarkis sarkis commented Jun 15, 2018

what

Fix a typo in variable description key.

why

Allow module to be pulled and instantiated without error.

main.tf Outdated
@@ -26,7 +26,7 @@ resource "aws_security_group_rule" "egress" {
}

resource "aws_security_group_rule" "http_ingress" {
count = "${var.http_enabled}"
count = "${var.http_enabled ? 1 : 0}"
Copy link
Member

Choose a reason for hiding this comment

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

use explicit comparison: var.http_enabled == "true"

Copy link
Member

Choose a reason for hiding this comment

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

make sure http_enabled is a string. boolean variables in TF are not recommended by terraform.

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.

See comments

@sarkis sarkis merged commit 7c67cc9 into master Jun 15, 2018
@sarkis sarkis deleted the fix-description-typo branch June 15, 2018 19:49
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.

None yet

2 participants