ec2-instance-role
dod-iac/ec2-instance-role/aws
IAM role for use as an EC2 instance role
Usage Creates a IAM role with no permissions for use as a EC2 instance role. ``hcl module "instance_role" { source = "dod-iac/ec2-instance-role/aws" name = format("app-%s-instance-role-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Creates an IAM role for a EC2 instance that can join a AWS Managed Microsoft AD. `hcl module "domain_instance_role" { source = "dod-iac/ec2-instance-role/aws" allow_seamless_domain_join = true name = format("app-%s-domain-instance-role-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` For more information on joining AD domains see https://docs.aws.amazon.com/directoryservice/latest/ad
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | The name of the AWS IAM role. | required |
| allow_ecs | bool | Allow instance to create or join an ECS cluster. | false |
| allow_image_builder | bool | Allow instance to be managed by EC2 Image Builder. | false |
| allow_seamless_domain_join | bool | Allow instance to seamlessly join to your AWS Managed Microsoft AD directory. | false |
| assume_role_policy | string | The assume role policy for the AWS IAM role. If blank, allows EC2 instances in | "" |
| tags | map(string) | Tags applied to the AWS IAM role. | {} |
arn — The Amazon Resource Name (ARN) of the AWS IAM Role.name — The name of the AWS IAM Role.Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,