Giter VIP home page Giter VIP logo

terraform-beginner-bootcamp-2023's Introduction

Terraform Beginner Bootcamp 2023

Semantic versioning

This project utilizes semantic versioning for its tagging - MAJOR.MINOR.PATCH.

Commit message should include issue number.

Progress

Check OS version

Run cat /etc/os-release

Create bash script for terraform installation in gitpod

init script in .gitpod.yml downloads and installs Terraform. Initial template had an issue that stopped the installation process to ask for user input. New installation processes is created in bash install script by copying steps mentioned in Terraform documentation for Ubuntu.

Initially script file can be run using source command (e.g., source ./bin/install-terraform-cli.sh) or just by running ./bin/install-terraform-cli.sh. For the latter to work though, a change mode (chmod) command has to be ran on the script.

To check the current change mode, a ls -la command can be used. It will show three groups of letters rwx (e.g., drwxr-xr-x, -rw-r--r--) where r stands for read, w - write, and x - execute. Three groups are - User, Group and Others.

To change the file chmod to allow execution, run chmod u+x ./bin/install-terraform-cli.sh. It can be changed using numbers as well (e.g., chmod 744 ./bin/install-terraform-cli.sh) which relys on numerical permissions.

Note: Template uses init task in .gitpod.yml, but it is run only with new non-prebuilt workspaces, so init can be changed to before to always run them when environment/workspace is started.

Environment variables

Checking & searching existing environment variables

env

env | grep terraform-beginner-bootcamp-2023

Setting a variable in terminal scope

export PROJECT_ROOT='SOME_VALUE'
echo $PROJECT_ROOT

Setting a variable globally

To set env variable globally, bash profiles can be used or using GitPod.

Using GitPod

gp env PROJECT_ROOT='/workspace/terraform-beginner-bootcamp-2023'

After restart, it should be available in the terminal.

AWS CLI

Checking AWS credentials

aws sts get-caller-identity

terraform-beginner-bootcamp-2023's People

Contributors

rimselis avatar

Watchers

 avatar

terraform-beginner-bootcamp-2023's Issues

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.