|
| 1 | +# Input Variables |
| 2 | + |
| 3 | +## Resource tags |
| 4 | +variable "stack_item_label" { |
| 5 | + type = "string" |
| 6 | + description = "Short form identifier for this stack. This value is used to create the 'Name' resource tag for resources created by this stack item, and also serves as a unique key for re-use." |
| 7 | +} |
| 8 | + |
| 9 | +variable "stack_item_fullname" { |
| 10 | + type = "string" |
| 11 | + description = "Long form descriptive name for this stack item. This value is used to create the 'application' resource tag for resources created by this stack item." |
| 12 | +} |
| 13 | + |
| 14 | +## Instance parameters |
| 15 | +variable "ami_custom" { |
| 16 | + type = "string" |
| 17 | + description = "Custom AMI to utilize" |
| 18 | + default = "" |
| 19 | +} |
| 20 | + |
| 21 | +variable "instance_type" { |
| 22 | + type = "string" |
| 23 | + description = "EC2 instance type to associate with the launch configuration." |
| 24 | + default = "t2.medium" |
| 25 | +} |
| 26 | + |
| 27 | +variable "key_name" { |
| 28 | + type = "string" |
| 29 | + description = "SSH key pair to associate with the launch configuration." |
| 30 | +} |
| 31 | + |
| 32 | +variable "region" { |
| 33 | + type = "string" |
| 34 | + description = "AWS region to be utilized." |
| 35 | +} |
| 36 | + |
| 37 | +variable "subnets" { |
| 38 | + tpye = "string" |
| 39 | + description = "List of VPC subnets eligible for instance deployment" |
| 40 | +} |
| 41 | + |
| 42 | +variable "vpc_id" { |
| 43 | + type = "string" |
| 44 | + description = "ID of the target VPC." |
| 45 | +} |
| 46 | + |
| 47 | +## Generator parameters |
| 48 | + |
| 49 | +### Order matters. Do not remove clients here, use the 'revoked_clients' list instead. |
| 50 | +variable "active_clients" { |
| 51 | + type = "string" |
| 52 | + description = "Comma delimited list of active clients" |
| 53 | + default = "" |
| 54 | +} |
| 55 | + |
| 56 | +variable "cert_key_name" { |
| 57 | + type = "string" |
| 58 | + default = "EasyRSA" |
| 59 | +} |
| 60 | + |
| 61 | +variable "cert_key_size" { |
| 62 | + type = "string" |
| 63 | + default = 4096 |
| 64 | +} |
| 65 | + |
| 66 | +variable "force_cert_regen" { |
| 67 | + type = "string" |
| 68 | + description = "Force all certificates to be regenerated." |
| 69 | + default = false |
| 70 | +} |
| 71 | + |
| 72 | +variable "key_city" { |
| 73 | + type = "string" |
| 74 | + description = "City to be associated with the certificate." |
| 75 | + default = "San Francisco" |
| 76 | +} |
| 77 | + |
| 78 | +variable "key_country" { |
| 79 | + type = "string" |
| 80 | + description = "Country to be associated with the certificate." |
| 81 | + default = "US" |
| 82 | +} |
| 83 | + |
| 84 | +variable "key_email" { |
| 85 | + type = "string" |
| 86 | + description = "Email address to be associated with the certificate." |
| 87 | + default = "support@example.io" |
| 88 | +} |
| 89 | + |
| 90 | +variable "key_org" { |
| 91 | + type = "string" |
| 92 | + description = "Organization to be associated with the certificate." |
| 93 | + default = "Example, Inc." |
| 94 | +} |
| 95 | + |
| 96 | +variable "key_ou" { |
| 97 | + type = "string" |
| 98 | + description = "Organizational unit to be associated with the certificate." |
| 99 | + default = "Operations" |
| 100 | +} |
| 101 | + |
| 102 | +variable "key_province" { |
| 103 | + type = "string" |
| 104 | + description = "Province to be associated with the certificate." |
| 105 | + default = "CA" |
| 106 | +} |
| 107 | + |
| 108 | +variable "openvpn_host" { |
| 109 | + type = "string" |
| 110 | + description = "Publicly accessible hostname of the OpenVPN server(s)." |
| 111 | +} |
| 112 | + |
| 113 | +# Comma delimited list |
| 114 | +variable "revoked_clients" { |
| 115 | + type = "string" |
| 116 | + description = "Comma delimited list of existing clients who are to have their privileges revoked." |
| 117 | + default = "" |
| 118 | +} |
| 119 | + |
| 120 | +variable "s3_bucket" { |
| 121 | + type = "string" |
| 122 | + description = "The S3 bucket where certificate and configuration are stored." |
| 123 | +} |
| 124 | + |
| 125 | +### Do not include the trailing slash |
| 126 | +variable "s3_bucket_prefix" { |
| 127 | + type = "string" |
| 128 | + description = "The S3 bucket prefix. Certificates and configuration will be sourced from the root if not configured." |
| 129 | + default = "" |
| 130 | +} |
| 131 | + |
| 132 | +variable "s3_push_dryrun" { |
| 133 | + type = "string" |
| 134 | + description = "Dry-run push of certificates into s3 location" |
| 135 | + default = false |
| 136 | +} |
0 commit comments