Skip to content

Commit

Permalink
fix the outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohan Yadav committed Sep 24, 2019
1 parent ea2ab6a commit 2cfc565
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This module has a few dependencies:
Here is an example of how you can use this module in your inventory structure:
```hcl
module "keypair" {
source = "git::https://github.com/clouddrove/terraform-aws-keypair.git?ref=tags/0.12.1"
source = "git::https://github.com/clouddrove/terraform-aws-keypair.git?ref=tags/0.12.2"
key = "~/.ssh/id_rsa.pub"
key_name = "devops"
enable_key_pair = true
Expand Down
2 changes: 1 addition & 1 deletion README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ usage : |-
Here is an example of how you can use this module in your inventory structure:
```hcl
module "keypair" {
source = "git::https://github.com/clouddrove/terraform-aws-keypair.git?ref=tags/0.12.1"
source = "git::https://github.com/clouddrove/terraform-aws-keypair.git?ref=tags/0.12.2"
key = "~/.ssh/id_rsa.pub"
key_name = "devops"
enable_key_pair = true
Expand Down
2 changes: 1 addition & 1 deletion _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ provider "aws" {
}

module "keypair" {
source = "git::https://github.com/clouddrove/terraform-aws-keypair.git?ref=tags/0.12.1"
source = "git::https://github.com/clouddrove/terraform-aws-keypair.git?ref=tags/0.12.2"

key_path = "~/.ssh/id_rsa.pub"
key_name = "devops"
Expand Down
7 changes: 2 additions & 5 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
output "name" {
value = concat(
aws_key_pair.default.*.key_name
)[0]
value = join("", aws_key_pair.default.*.key_name)
description = "Name of SSH key."
}

}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# Terraform version
terraform {
required_version = ">= 0.12"
}

0 comments on commit 2cfc565

Please sign in to comment.