Skip to content

Commit

Permalink
updated variables
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyBarros committed Nov 16, 2022
1 parent c9480ed commit 39e9ff2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ variable "boundary_address" {
default = ""
}

variable "auth_method_id" {
variable "boundary_auth_method_id" {
description = "Boundary Auth Method"
default = ""
}

variable "username" {
variable "boundary_username" {
description = "Boundary Username"
default = "admin"
}

variable "password" {
variable "boundary_password" {
description = "Boundary Password"
default = ""
}
Expand Down Expand Up @@ -59,3 +59,11 @@ variable "application_name" {
description = "the HCP Vault namespace we will use for mounting the database secret engine"
default = "Administrator"
}

variable "path_to_private_key" {
description = "path to the private key used on your Windows EC2 host"
}

variable "path_to_public_key" {
description = "path to the private key used on your Windows EC2 host"
}
4 changes: 2 additions & 2 deletions vault_windows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ resource "vault_kv_secret_v2" "ssh" {
data_json = jsonencode(
{
username = "ubuntu",
public_key = file("/Users/guybarros/.ssh/id_rsa.pub")
private_key = file("/Users/guybarros/.ssh/id_rsa")
public_key = file(var.path_to_public_key)
private_key = file(var.path_to_private_key)
}
)
}

0 comments on commit 39e9ff2

Please sign in to comment.