Commit 0516b898 authored by Gabriel Suarez's avatar Gabriel Suarez Committed by Anton Babenko

Instance count as output (#121)

* Output for getting the amount of instances to be created that are passed as argument

* Updated documentation
parent bddd2ee8
......@@ -154,6 +154,7 @@ data "aws_ami" "ubuntu-xenial" {
| tags | List of tags of instances |
| volume\_tags | List of tags of volumes of instances |
| vpc\_security\_group\_ids | List of associated security groups of instances, if running in non-default VPC |
| instance\_count | Number of instances to launch specified as argument to this module |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
......
......@@ -102,3 +102,8 @@ output "volume_tags" {
description = "List of tags of volumes of instances"
value = aws_instance.this.*.volume_tags
}
output "instance_count" {
description = "Number of instances to launch specified as argument to this module"
value = var.instance_count
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment