Skip to content

Using terraform for maintaining an Infrastructure as a Service (IaaS) configuration that acts as a development server on the AWS cloud

License

Notifications You must be signed in to change notification settings

aminbenmansour/remote-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws

Putting together AWS services to establish a development environment on the cloud.

Terraform took place to define our architecture iteratively, in a way that helps us to reproduce our architecture in the future.

An SSH connection is established from our local VScode editor to the remote EC2 instance on the cloud.

Architecture

The architecture of the projects is as follows. (credit: freecodecamp)

aws-terra-arch

VSCode configuration

The following steps should be done in advance so we take advantage of vscode at the fullest.

Extension AWS Toolkit

Amazon Web Services toolkit for browsing and updating cloud resources

AWS vscode profile

Add a user with a programatic access and assign and attach administrator policies to user so we have full access to AWS account. Finally create an access credentials profile and fill the aws access and secret keys and link it to the extension above.

Extention Remote - SSH

Open any folder on a remote machine using SSH and take advantage of VS Code's full feature set.

Extension Terraform

Adds syntax support for the Terraform and Terragrunt configuration language.

Usage

  • Generating a public key pair for use when authenticating with a remote server (eg. ed25519)
ssh-keygen -t <cryptography_method>
  • Connect to EC2 instance through SSH, the username for a Ubuntu image is ubuntu and public ipv4 address is accessible through console. The file holding the private key is mtckey in my case
ssh -i ~/.ssh/<PRIVATE_KEY_FILE> <USERNAME>@<INSTANCE_PUBLIC_IPV4_ADDRESS>
  • Alternative way (recommended), use the Remote - SSH extension.

About

Using terraform for maintaining an Infrastructure as a Service (IaaS) configuration that acts as a development server on the AWS cloud

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published