Skip to content

Commit 45bd961

Browse files
rsrchboyaknysh
authored andcommitted
Add ssh_{public,private}_key_ssm_path outputs (#5)
* Add `ssh_{public,private}_key_ssm_path` outputs * Update docs
1 parent 097a2a6 commit 45bd961

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Available targets:
102102
|------|-------------|
103103
| key_name | Name of SSH key |
104104
| public_key | Content of the generated public key |
105+
| ssh_private_key_ssm_path | SSM path of the generated private key |
106+
| ssh_public_key_ssm_path | SSM path of the generated public key |
105107

106108

107109

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

245247
[osterman_homepage]: https://github.com/osterman
246-
[osterman_avatar]: https://github.com/osterman.png?size=150
248+
[osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
247249
[joshmyers_homepage]: https://github.com/joshmyers
248-
[joshmyers_avatar]: https://github.com/joshmyers.png?size=150
250+
[joshmyers_avatar]: https://img.cloudposse.com/150x150/https://github.com/joshmyers.png
249251
[aknysh_homepage]: https://github.com/aknysh
250-
[aknysh_avatar]: https://github.com/aknysh.png?size=150
252+
[aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png
251253

252254

253255

docs/terraform.md

+2
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@
2525
|------|-------------|
2626
| key_name | Name of SSH key |
2727
| public_key | Content of the generated public key |
28+
| ssh_private_key_ssm_path | SSM path of the generated private key |
29+
| ssh_public_key_ssm_path | SSM path of the generated public key |
2830

outputs.tf

+10
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@ output "key_name" {
77
value = module.label.id
88
description = "Name of SSH key"
99
}
10+
11+
output "ssh_public_key_ssm_path" {
12+
value = local.ssh_public_key_ssm_path
13+
description = "SSM path of the generated public key"
14+
}
15+
16+
output "ssh_private_key_ssm_path" {
17+
value = local.ssh_private_key_ssm_path
18+
description = "SSM path of the generated private key"
19+
}

0 commit comments

Comments
 (0)