Skip to content

Commit 0516b89

Browse files
Gabriel Suarezantonbabenko
Gabriel Suarez
authored andcommitted
Instance count as output (#121)
* Output for getting the amount of instances to be created that are passed as argument * Updated documentation
1 parent bddd2ee commit 0516b89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ data "aws_ami" "ubuntu-xenial" {
154154
| tags | List of tags of instances |
155155
| volume\_tags | List of tags of volumes of instances |
156156
| vpc\_security\_group\_ids | List of associated security groups of instances, if running in non-default VPC |
157+
| instance\_count | Number of instances to launch specified as argument to this module |
157158

158159
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
159160

outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,8 @@ output "volume_tags" {
102102
description = "List of tags of volumes of instances"
103103
value = aws_instance.this.*.volume_tags
104104
}
105+
106+
output "instance_count" {
107+
description = "Number of instances to launch specified as argument to this module"
108+
value = var.instance_count
109+
}

0 commit comments

Comments
 (0)