Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 3.46 KB

README.md

File metadata and controls

52 lines (39 loc) · 3.46 KB

Terraform AWS IAM module

This is a Dynamic module in Terraform to create IAM resources. This module will be called from ../env/dev.tf modules file. This module creates roles, policies.

  • main.tf : contains all the resources, which will be created with terraform apply command.
  • variables.tf : contains all the variables required to create the resources.
  • outputs.tf : print output attributes of the resources.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_iam_instance_profile.iam_instance_profile resource
aws_iam_role.iam_role resource
aws_iam_role.worker_iam_role resource
aws_iam_role_policy.service_linked_iam_role_policy resource
aws_iam_role_policy_attachment.CNI_policy_iam_role_policy_attachment resource
aws_iam_role_policy_attachment.EC2ContainerRegistryReadOnly_iam_role_policy_attachment resource
aws_iam_role_policy_attachment.EKSVPCResourceController_iam_role_policy_attachment resource
aws_iam_role_policy_attachment.WorkerNode_iam_role_policy_attachment resource
aws_iam_role_policy_attachment.clusterPolicy_iam_role_policy_attachment resource
aws_iam_role_policy_attachment.servicePolicy_iam_role_policy_attachment resource

Inputs

Name Description Type Default Required
environment Name of the environment where infrastructure is being built. string n/a yes
name Name is the prefix to use for resources that needs to be created. string n/a yes
region The AWS region where terraform builds resources. string "us-east-1" no
tags Common tags to attach all the resources create in this project. map(string) n/a yes

Outputs

Name Description
iam_instance_profile IAM instance profile for the EKS worker nodes.
role_arn IAM role for EKS service.
worker_role_arn IAM role for EKS worker nodes.