-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 count logic for ebs, make variable region
non-required
#5
Conversation
Hey old friend! We’ll get this reviewed shortly. |
main.tf
Outdated
@@ -90,7 +92,8 @@ resource "aws_instance" "default" { | |||
delete_on_termination = "${var.delete_on_termination}" | |||
} | |||
|
|||
tags = "${merge(module.label.tags, map("instance_index", "${count.index}"))}" | |||
tags = "${merge(module.label.tags, map("instance_index", "${count.index}"))}" | |||
volume_tags = "${merge(module.label.tags, map("instance_index", "${count.index}"))}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like volume_tags
is not in use.
and it's the same as tags
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, isn't a same. ltmgfy :)
volume_tags - (Optional) A mapping of tags to assign to the devices created by the instance at launch time.
in case of module it's rood device i.e. /
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SweetOps
they are the same in the code, and volume_tags
is not in use anywhere.
please review it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh, I don't understand what you want to hear. Why the both of them have same tags? It is necessary for consistency e.g. instance with name cp-test-kafka-1
should has the same name for root device (cp-test-kafka-1
) and same tags as instance to which it assigned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
volume_tags
has been removed due hashicorp/terraform#3531 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @SweetOps
please see comments.
Also, don't modify README.md
, make all changes in README.yaml
and then
rebuild README by executing these three commands:
make init
make readme/deps
make readme
region
non-requiredregion
non-required
I do not understand what this has to do with "hashicorp/terraform#3531", |
what
region
non-required