How to Automate Infrastructure setup in AWS cloud using Terraform & Azure DevOps Pipelines | IAC

preview_player
Показать описание

We will be learning an interesting use case to provision resources in AWS cloud using Terraform and Azure DevOps. We will also learn how to store terraform state info remotely in AWS S3 bucket.

We will create S3 bucket for storing terraform state info and Dynamo DB table for providing state lock capability.

We will try to create an EC2 instance and S3 Bucket using Terraform and Azure DevOps in AWS cloud. Look at the diagram that describes the whole flow.

Pre-requisites:
Azure DevOps organization
Add Azure pipelines Terraform tasks
Create AWS service connection in Azure DevOps for Terraform to use
Create service connection for connecting to GitHub
Create S3 bucket for storing TF state
Create dynamo DB table for providing lock capability
I have provided my public repo as an example which you can use.

Step # 1 - Create S3 Bucket
Step # 2 - Create DynamoDB Table
Step # 3 - Create Service connection to connect to AWS and GitHub from Azure DevOps
Step # 4 - Create a new Release Pipeline
Рекомендации по теме
Комментарии
Автор

Wonderful. Very well explained. Will try out and let you know

picklu
Автор

Thank you so much for this! Very well explained. Cheers!

JuanoIrigaray
Автор

Awesome tutorial. can you create a video for multiple AWS Accounts with different env deployed in each one of them as well?

ywnoqlb
Автор

Hi can you mention some of the issues encountered while deploying this microservice application

palashdhote
Автор

Thank you for this. Can you create another video to achive same things using YAML code?

mmpawar
Автор

Hey great video, however I am unable to see AWS for terraform option under service connections,
could you please help ?

biswadeepabhattacharyaofficial
Автор

Installed Azure pipelines for terraform extension, but still dont see the aws for terraform under service connection, can you please help or let me know if I missing anything

TheRishith
visit shbcf.ru