15-IAM
Module đọc IAM Role và Instance Profile từ shared (data source)
Stage ModuleData Source Onlymodules/15-iam
Thông tin
Module này KHÔNG tạo IAM resources. Nó chỉ đọc (data source) IAM role đã được tạo bởi shared/modules/iam.
Mục đích
Đọc IAM Instance Profile để gán cho EC2 instances và Launch Template. IAM role được tạo một lần trong shared và dùng chung cho tất cả stages.
Data Sources
| Data Source | Mô tả |
|---|---|
| aws_iam_instance_profile.this | Đọc instance profile MILU2-AWS-ALLOW |
Outputs
| Tên | Mô tả |
|---|---|
| instance_profile_name | Tên của instance profile |
| instance_profile_arn | ARN của instance profile |
Tham khảo
Shared: IAM - Module tạo IAM role thực sự