https://www.coachdevops.com/2021/12/a...
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
Смотрите видео How to Automate Infrastructure setup in AWS cloud using Terraform & Azure DevOps Pipelines | IAC онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DevOps Coach 29 Декабрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,036 раз и оно понравилось 121 людям.