Giter VIP home page Giter VIP logo

terraform-geginner-bootcamp-2023's Introduction

Terraform Beginner Bootcamp 2023

##Semantic versioning

This project is going to user Semantic Versioning for the Project.

[semver.org] (https://semver.org)

The general format:

MAJOR.MINOR.PATCH , eg. '1.0.1'

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes
MINOR version when you add functionality in a backward compatible manner
PATCH version when you make backward compatible bug fixes

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

Workling on env variables

We use environemnt variables to pass some value to the system & use the viarable name fo rreference

A good example would be exporting the http proxu on a linux system

export http_proxy="http://ip:3128" or export http_proxy="http://fqdn:3128"

We can print env variable using echo $http_proxy

e.g

http_proxy="http://ip:3128"

export $http_proxy

End of env vars###

Setting env vars for AWS cli install script"""

Wrote a shell script to check for existing setup of AWS cli, remove it & then do a fresh install. After the install it checks the caller identity ''' UserId": "12343", "Account": "5678", "Arn": "arn:aws:iam::1bla bla"

''' Issue 10

  • In this lecture we used random provider block
  • provider was initialized & we generated random bucket name.
  • we outputed bucket name result & id in the output

Providers are inerfaces to API's that will allow to create resources in terraform.

Modules are way to refactor & make terraform code modular, portable & shareable.

  • We also learned about terraform console & we can see list of all terraform commands

terraform init terrafor plan terraform apply

terraform-geginner-bootcamp-2023's People

Contributors

maajin avatar

Watchers

 avatar

terraform-geginner-bootcamp-2023's Issues

Terraform for simple S3 Bucket

  • Define an S3 Bucket in terraform.
  • We are going to use the random resource string for the name.
  • Install the AWS Terraform Provider
  • Configure AWS provider

Terraform random bucket name

  • explore terrafor registry
  • install the terrafor random provider
  • runterraform init
  • generate random bucket name
  • generate the output fro the tfcode

Refactor terraform cli

There is an issue with the terraform CLI.
We need to make sure it is automated & can be installed without user input.

Refactor aws CLI scripts

-[] Refactor aws cli into bash scripts
-[] provide env var examples for AWS CLI requirements
-[] set our env vars for AWS using gp env

Project Root Env Var

We are going to set an environment variable for project root that we can reference in our bash scripts.

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.