Posts

Showing posts with the label Automation

Code with Terraform

Image
POC on AWS Services like IAM, S3, Lambda, API Gateway & CloudFront using Terraform (IaC) Reference is been taken from:  https://github.com/KanchanSoni16/terraform-s3-lambda-apigatway Document:  https://docs.google.com/ Terraform Architecture S3 (Simple Storage Service) Brief:   An object storage service that offers industry-leading scalability, data availability, security, and performance code  Files used:   aws_s3.tf   resource "aws_s3_bucket" "api_bucket" {   bucket = "${var.myregion}-${var.bucket_name}"   tags = {     Name        = "${var.myregion}-${var.bucket_name}"     Environment = "${var.environment}"   } } resource "aws_s3_bucket_acl" "api_acl" {   bucket = aws_s3_bucket.api_bucket.id   acl    = var.acl   depends_on = [     aws_s3_bucket.api_bucket   ] } variable.tf variable "bucket_name" {   default = "" } variable "environment" {   default = "" } variable "m

All About Terraform

Image
All About Terraform Before starting to learn what Terraform is. We need to understand what it is Infra As Code. Infrastructure as Code (IaC) is a way of managing and setting up your IT infrastructure using code, rather than manually configuring individual systems. With IaC , you write code to describe the desired state of your infrastructure, such as the number of servers you need and how they should be connected.  Tools like Terraform can then automatically execute this code to create and manage your infrastructure for you.  The benefits of using IaC include better consistency and reliability and easier collaboration and management since all of your infrastructure is defined and managed in a single place. Additionally, since IaC is code, you can version control it, making it easier to track changes and roll back to previous configurations if needed So What is Terraform? Terraform Terraform is a software tool that helps you manage and set up your infrastructure, such as the computers a