Skip to content

Commit

Permalink
Add ssh_{public,private}_key_ssm_path outputs (#5)
Browse files Browse the repository at this point in the history
* Add `ssh_{public,private}_key_ssm_path` outputs

* Update docs
  • Loading branch information
rsrchboy authored and aknysh committed Sep 18, 2019
1 parent 097a2a6 commit 45bd961
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ Available targets:
|------|-------------|
| key_name | Name of SSH key |
| public_key | Content of the generated public key |
| ssh_private_key_ssm_path | SSM path of the generated private key |
| ssh_public_key_ssm_path | SSM path of the generated public key |



Expand Down Expand Up @@ -243,11 +245,11 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
|---|---|---|

[osterman_homepage]: https://github.com/osterman
[osterman_avatar]: https://github.com/osterman.png?size=150
[osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
[joshmyers_homepage]: https://github.com/joshmyers
[joshmyers_avatar]: https://github.com/joshmyers.png?size=150
[joshmyers_avatar]: https://img.cloudposse.com/150x150/https://github.com/joshmyers.png
[aknysh_homepage]: https://github.com/aknysh
[aknysh_avatar]: https://github.com/aknysh.png?size=150
[aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png



Expand Down
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@
|------|-------------|
| key_name | Name of SSH key |
| public_key | Content of the generated public key |
| ssh_private_key_ssm_path | SSM path of the generated private key |
| ssh_public_key_ssm_path | SSM path of the generated public key |

10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ output "key_name" {
value = module.label.id
description = "Name of SSH key"
}

output "ssh_public_key_ssm_path" {
value = local.ssh_public_key_ssm_path
description = "SSM path of the generated public key"
}

output "ssh_private_key_ssm_path" {
value = local.ssh_private_key_ssm_path
description = "SSM path of the generated private key"
}

0 comments on commit 45bd961

Please sign in to comment.