Created
August 30, 2020 20:10
-
-
Save lekansogunle/6a3830cd17c34b166f416c1e0881f5c3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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