Giter VIP home page Giter VIP logo

keyless-web-server's Introduction

Keyless web server

This repo contains the infrastructure code and the configuration scripts necessary to create a web ser instance with encrypted volume and monitored by CPU, RAM and disk utilization.

All the configuration is made without the usage of any ssh key-pair or other static credentials. That means that there is no sensitive data that could be leaked. All the access is traceable an auditable with the usage of the AWS Systems Manager service and AWS temporary credential tokens

Project structure

Following is a description of the directory structure

  • tf/: where all infrastructure code resides (terraform files). It has directories for each environment provisioned and a modules directory for shared resources that multiple environments could have

    • tf/dev: a development environment associated with an existing account, VPC and subnet

    • tf/modules: contains the server module, which encompass all the resources necessary to provision and manage the web server

  • scripts/: bash scripts that make use of AWS Systems Manager service in order to configure the instance in our behalf.

How to use it

Firstly, you need to configure your AWS credentials. It's recommended to use temporary credentials with environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN).

Than, go to tf/dev and run tf apply. This will create the necessary infrastructure resources. This will output the public ip of the instance, which you will use to access the nginx server

Finally, go to scripts/ and run ./all.sh. It will install the necessary dependencies on the instance (docker, AWS CloudWatch Agent) without direct access to the instance.

Now, go to <instance-public-ip>:443. You should the welcome page of nginx. You also can see alarms of related metrics on AWS CloudWatch.

Currently, it's using HTTP protocol (without SSL)

keyless-web-server's People

Contributors

danielkneipp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.