forked from terraform-aws-modules/terraform-aws-ec2-instance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Terraform 0.12 update (terraform-aws-modules#93)
- Loading branch information
1 parent
8f2cf59
commit 554a057
Showing
9 changed files
with
270 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
repos: | ||
- repo: git://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.7.3 | ||
rev: v1.12.0 | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_docs | ||
# - id: terraform_docs | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.3.0 | ||
rev: v2.2.3 | ||
hooks: | ||
- id: check-merge-conflict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,50 @@ | ||
output "ids" { | ||
description = "List of IDs of instances" | ||
value = "${module.ec2.id}" | ||
value = module.ec2.id | ||
} | ||
|
||
output "ids_t2" { | ||
description = "List of IDs of t2-type instances" | ||
value = "${module.ec2_with_t2_unlimited.id}" | ||
value = module.ec2_with_t2_unlimited.id | ||
} | ||
|
||
output "public_dns" { | ||
description = "List of public DNS names assigned to the instances" | ||
value = "${module.ec2.public_dns}" | ||
value = module.ec2.public_dns | ||
} | ||
|
||
output "vpc_security_group_ids" { | ||
description = "List of VPC security group ids assigned to the instances" | ||
value = "${module.ec2.vpc_security_group_ids}" | ||
value = module.ec2.vpc_security_group_ids | ||
} | ||
|
||
output "tags" { | ||
description = "List of tags" | ||
value = "${module.ec2.tags}" | ||
value = module.ec2.tags | ||
} | ||
|
||
output "instance_id" { | ||
description = "EC2 instance ID" | ||
value = "${module.ec2.id[0]}" | ||
value = module.ec2.id[0] | ||
} | ||
|
||
output "t2_instance_id" { | ||
description = "EC2 instance ID" | ||
value = module.ec2_with_t2_unlimited.id[0] | ||
} | ||
|
||
output "instance_public_dns" { | ||
description = "Public DNS name assigned to the EC2 instance" | ||
value = "${module.ec2.public_dns[0]}" | ||
value = module.ec2.public_dns[0] | ||
} | ||
|
||
output "credit_specification" { | ||
description = "Credit specification of EC2 instance (empty list for not t2 instance types)" | ||
value = "${module.ec2.credit_specification}" | ||
value = module.ec2.credit_specification | ||
} | ||
|
||
output "credit_specification_t2_unlimited" { | ||
description = "Credit specification of t2-type EC2 instance" | ||
value = "${module.ec2_with_t2_unlimited.credit_specification}" | ||
value = module.ec2_with_t2_unlimited.credit_specification | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
output "instances_public_ips" { | ||
description = "Public IPs assigned to the EC2 instance" | ||
value = "${module.ec2.public_ip}" | ||
value = module.ec2.public_ip | ||
} | ||
|
||
output "ebs_volume_attachment_id" { | ||
description = "The volume ID" | ||
value = "${aws_volume_attachment.this_ec2.*.volume_id}" | ||
value = aws_volume_attachment.this_ec2.*.volume_id | ||
} | ||
|
||
output "ebs_volume_attachment_instance_id" { | ||
description = "The instance ID" | ||
value = "${aws_volume_attachment.this_ec2.*.instance_id}" | ||
value = aws_volume_attachment.this_ec2.*.instance_id | ||
} | ||
|
Oops, something went wrong.