Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 4.32 KB

File metadata and controls

59 lines (48 loc) · 4.32 KB

Requirements

Name Version
alicloud ~> 1.150.0
wireguard ~> 0.1.3

Providers

Name Version
alicloud 1.150.0
cloudinit 2.2.0
external 2.2.0
http 2.1.0
wireguard 0.1.3

Modules

No modules.

Resources

Name Type
alicloud_ecs_key_pair.wireguard resource
alicloud_instance.instance resource
alicloud_security_group.wireguard resource
alicloud_security_group_rule.allow_all_egress resource
alicloud_security_group_rule.allow_ssh_ingress resource
alicloud_security_group_rule.allow_wireguard_ingress resource
alicloud_vpc.vpc resource
alicloud_vswitch.vswitch resource
wireguard_asymmetric_key.client resource
wireguard_asymmetric_key.server resource
alicloud_images.ubuntu data source
cloudinit_config.wireguard data source
external_external.qr data source
http_http.ip data source
wireguard_config_document.client data source
wireguard_config_document.server data source

Inputs

Name Description Type Default Required
access_key The access key id. string n/a yes
clients Map of client names to ip addresses. Must be in the 10.10.10/24 subnet, and 10.10.10.1 is reserved for the server. map(string)
{
"default": "10.10.10.2"
}
no
region The wireguard server's desired region. Valid regions at https://www.alibabacloud.com/help/en/doc-detail/89155.htm. string n/a yes
secret_key The secret access key. string n/a yes
ssh_public_key The SSH key used to access the wireguard server. string n/a yes
vpc_cidr_block The vpc cidr block to use. string "10.1.0.0/16" no

Outputs

Name Description
client_config Client configuration.
client_config_qr_codes Client configuration qr codes.