Skip to content

awslabs/aws-terraform-dev-container

logo

AWS Terraform Dev Container

A VSCode Dev Container with tools to help you build and manage AWS infrastructure with Terraform

screenshot-1
Develop your project in a Docker container
screenshot-2
Increase productivity with well-defined Make commands
screenshot-3
Ensure every team member has all the tools on their correct versions
screenshot-4
Extensions already installed for you

Table of Contents

Getting Started

  1. On a terminal, inside your Terraform project, execute the following on Mac, Linux or WSL:
curl -sL https://raw.githubusercontent.com/awslabs/aws-terraform-dev-container/main/scripts/init.sh | bash
  1. Open the folder with VSCode
  2. Reopen in Container

To reopen in container manually, open the command pallete on VS Code and select Rebuild and Reopen in Container

Prerequisites

A list of things you need, or how to install them.

  • Docker - The fastest way to containerize applications
  • Visual Studio Code - Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.
  • VSCode Remote Development Extension Pack - An extension pack that lets you open any folder in a container, on a remote machine, or in WSL and take advantage of VS Code's full feature set.

Usage

make [tab][tab]

For example, if you want to explore the most common terraform commands:

make terraform/[tab]
apply     clean     destroy   fmt       init      init/     plan      validate  version

To display all available commands:

make help

For more information about each Make targets available.

References

  • Terraform by HashiCorp - Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.
  • Changelog - All notable changes.
  • Code Of Conduct - Amazon Open Source Code of Conduct
  • Contributing - Learn how to contribute
  • License - MIT No Attribution
  • GNU Make - If you are new to make, or are looking for a general introduction.

License

This project is licensed under the MIT-0 License. See the LICENSE file.

Copyright

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.