Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/europ/aws-simple-web-server
Deploy simple web server provided by nginx in debian 10 to amazon elastic compute cloud using terraform.
https://github.com/europ/aws-simple-web-server
amazon-elastic-compute-cloud amazon-web-services aws debian debian10 ec2 nginx terraform web-server
Last synced: 15 days ago
JSON representation
Deploy simple web server provided by nginx in debian 10 to amazon elastic compute cloud using terraform.
- Host: GitHub
- URL: https://github.com/europ/aws-simple-web-server
- Owner: europ
- Created: 2020-12-15T09:47:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T18:22:43.000Z (about 4 years ago)
- Last Synced: 2024-11-06T21:49:12.820Z (2 months ago)
- Topics: amazon-elastic-compute-cloud, amazon-web-services, aws, debian, debian10, ec2, nginx, terraform, web-server
- Language: HCL
- Homepage:
- Size: 645 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amazon Web Services - Simple Web Server
Deploy simple web server provided by [nginx](https://www.nginx.com/) in [debian 10](https://www.debian.org/index.html) to [amazon elastic compute cloud](https://aws.amazon.com/ec2) using [terraform](https://www.terraform.io/).
##### Deployed Infrastructure
![infrastructure.png](.other/yEd/infrastructure.png)
##### Dependency Graph
![graph.svg](.other/graph.svg)
### Setup
1. prerequisites installation
1. create [AWS Account](https://aws.amazon.com/)
* generate access key
1. install [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
1. install [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli)1. environment configuration
```bash
mkdir -p ~/.aws
cat < ~/.aws/config
[default]
region = us-east-1
EOS
cat < ~/.aws/credentials
[default]
aws_access_key_id =
aws_secret_access_key =
EOS
# secure the files
chmod 0600 ~/.aws/config ~/.aws/credentials
```1. clone this repository and `cd` into it
1. create SSH key pair
```bash
ssh-keygen -t rsa -b 4096 -C "terraform" -f ./ssh/key
```1. configure terraform variables (set your custom values)
```bash
# create variable file
cp .terraform.tfvars.example terraform.tfvars# set custom variable values
vi terraform.tfvars
```1. deployment
```bash
# download module(s)
terraform init# deploy
terraform apply
```