Git Product home page Git Product logo

aws-ec2-demo's Introduction

aws-ec2-demo

terraform demo for ssh access to ec2

Guides

  1. https://medium.com/@hmalgewatta/setting-up-an-aws-ec2-instance-with-ssh-access-using-terraform-c336c812322f
  2. https://medium.com/@christyjacob4/using-vscode-remotely-on-an-ec2-instance-7822c4032cff
  3. https://www.youtube.com/watch?v=yrFcA7GuB0g

Docker Instructions

Below are instructions for setting up and using Docker.

Docker Terraform Tool

  1. Build docker file
docker build --rm -t tf-tool -f tf-tool.Dockerfile .
  1. Run container in terminal
docker run --rm -it --mount type=bind,target=//root/code,source=/"$(pwd)" tf-tool
  1. Exit container
exit

Terraform Terminal Commands

These commands should be entered into the tf-tool Docker container terminal.

  1. Navigate to the terraform folder
cd code/terraform-iac
  1. Initialize terraform
terraform init
  1. Plan terraform to spot issues before creating
terraform plan
  1. Build
terraform apply
  1. Destroy
terraform destroy

aws-ec2-demo's People

Contributors

chris-wynne avatar

Stargazers

 avatar

Watchers

 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.