forked from jmhale/terraform-aws-wireguard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add descriptions to variables, outputs. Update README.
- Loading branch information
Showing
3 changed files
with
13 additions
and
4 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
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,7 +1,9 @@ | ||
output "vpn_ip" { | ||
value = "${aws_eip.wireguard_eip.public_ip}" | ||
description = "The public IPv4 address of the AWS Elastic IP assigned to the instance." | ||
} | ||
|
||
output "vpn_sg_id" { | ||
value = "${aws_security_group.sg_wireguard_admin.id}" | ||
description = "ID of the internal Security Group to associate with other resources needing to be accessed on VPN." | ||
} |
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,19 +1,27 @@ | ||
variable "ssh_key_id" {} | ||
variable "ssh_key_id" { | ||
description = "A SSH public key ID to add to the VPN instance." | ||
} | ||
|
||
variable "vpc_id" {} | ||
variable "vpc_id" { | ||
description = "The VPC ID in which Terraform will launch the resources." | ||
} | ||
|
||
variable "ami_id" { | ||
default = "ami-da05a4a0" | ||
description = "The AMI ID to use." | ||
} | ||
|
||
variable "public_subnet_ids" { | ||
type = "list" | ||
description = "A list of subnets for the Autoscaling Group to use for launching instances. May be a single subnet, but it must be an element in a list." | ||
} | ||
|
||
variable "wg_client_public_keys" { | ||
type = "list" | ||
description = "List of maps of client IPs and public keys. See Usage in README for details." | ||
} | ||
|
||
variable "env" { | ||
default = "prod" | ||
description = "The name of environment for WireGuard. Used to differentiate multiple deployments" | ||
} |