https://github.com/casl0/softether-ec2
https://github.com/casl0/softether-ec2
aws softether
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/casl0/softether-ec2
- Owner: CASL0
- License: mit
- Created: 2024-03-17T08:41:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T12:18:18.000Z (about 2 years ago)
- Last Synced: 2025-01-08T13:41:31.958Z (over 1 year ago)
- Topics: aws, softether
- Language: HCL
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# softether-ec2
## Prerequisites
1. Terraform をインストールしてください。
- https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli
1. 次の環境変数を設定してください。
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
## Getting Started
次のコマンドで EC2 を構築してください。
```sh
terraform plan
terraform apply -auto-approve
```
SSH で EC2 にアクセスし、SoftEther のセットアップを実施してください。
```sh
cd /opt/softether/vpnserver
make
sudo ./vpnserver start
```
## 構成

## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
| [aws](#requirement\_aws) | >= 5.00 |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 5.41.0 |
## Modules
| Name | Source | Version |
|------|--------|---------|
| [dns\_dhcp\_ec2](#module\_dns\_dhcp\_ec2) | terraform-aws-modules/ec2-instance/aws | ~> 5.0 |
| [outbound\_security\_group](#module\_outbound\_security\_group) | terraform-aws-modules/security-group/aws | ~> 5.0 |
| [proxy\_ec2](#module\_proxy\_ec2) | terraform-aws-modules/ec2-instance/aws | ~> 5.0 |
| [ssh\_security\_group](#module\_ssh\_security\_group) | terraform-aws-modules/security-group/aws | ~> 5.0 |
| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 5.0 |
| [vpn\_ec2](#module\_vpn\_ec2) | terraform-aws-modules/ec2-instance/aws | ~> 5.0 |
| [vpn\_security\_group](#module\_vpn\_security\_group) | terraform-aws-modules/security-group/aws | ~> 5.0 |
## Resources
| Name | Type |
|------|------|
| [aws_ami.amazon_linux](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source |
## Inputs
No inputs.
## Outputs
| Name | Description |
|------|-------------|
| [ami](#output\_ami) | AWS AMI |
| [ssh](#output\_ssh) | ssh command |