Skip to content

Cloud resources provisioned by IaC mainted through CI/CD pipelines

Notifications You must be signed in to change notification settings

yoU-Jay/AWS_Demo

Repository files navigation

AWS_Terraform_Demo

Terraform AWS Shell Script

This is a demo repo to demonstrate skills of DevOps tools like AWS, Terraform, Azure DevOps pipelines (and many more to come..).

🚧Work in Progress..🚧

Build Pipeline Release Pipeline
Build Status Azure DevOps Release Pipeline

Architecture

alb diagram

Prerequisites

Softwares Required

Name
Terraform
AWS CLI

Local Setup

AWS

  • Create an IAM User with necessary permissions.
  • Create an Access Key for the above user.

Create IAM User

aws iam create-user \
--user-name DNxtUser

aws iam create-access-key --user-name DNxtUser

aws iam attach-user-policy --policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess --user-name DNxtUser
  • Setup a local AWS profile for the above user using aws configure and the access keys provided.

Terraform

  • Download terraform from the official Hashicorp website.

  • Extract the executable file to any directory.

  • Update the Environment variable.

  • Verify using terraform --version

Git

  • Setup user.name and user.email at local level using git configure --local
  • To setup Github authentication using PAT. git remote set-url origin https://<your_personal_access_token>@github.com/<username>/<repo_name>.git

Azure DevOps Pipelines

Prerequisites

  • Existing ADO Project with required permissions.
  • Service connections for S3 and Github.
  • configured agent
  • Installed terraform extention in ADO

Deployment

  • Create a + New pipeline in releases.
  • Start with an Empty job.
  • In + Add and artifact, Select Source type as Github.
  • Under Service choose the service connection name created for Github and under Source (repository) select the required repository.
  • Click on Add.
  • In Stage 1, click on 1 job, 0 task to configure the stage.
  • Configure the Agent job
  • Select the Agent from the Agent Pool
  • Create 4 terraform tasks

About

Cloud resources provisioned by IaC mainted through CI/CD pipelines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published