Terraform | Attaching existing IAM role to EC2 instance using Terraform | Using data source IAM role

Опубликовано: 01 Октябрь 2024
на канале: DGR Uploads
1,313
23

====================================================================
Subscribe :    / @dgruploads  
====================================================================

Hello,

In this session, we will look at how we can attach an existing IAM role to the EC2 instance launched using Terraform. Here, we will make use of the data source block to fetch the information about the existing role and then use that information and pass it to the resource block of the EC2 instance and attach that role to the newly launched EC2 instance.

GitHub link :
https://github.com/Dgruploads/Terrafo...

Happy learning!!