Skip to content

Instantly share code, notes, and snippets.

@lekansogunle
Created August 30, 2020 20:10
Show Gist options
  • Save lekansogunle/6a3830cd17c34b166f416c1e0881f5c3 to your computer and use it in GitHub Desktop.
Save lekansogunle/6a3830cd17c34b166f416c1e0881f5c3 to your computer and use it in GitHub Desktop.
resource "aws_instance" "openvpn" {
ami = local.images[var.server_region]
instance_type = "t2.micro"
vpc_security_group_ids = [aws_security_group.instance.id]
user_data = <<-EOF
admin_user=${var.server_username}
admin_pw=${var.server_password}
EOF
tags = {
Name = "openvpn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment