Terraform module Provides an IAM Instance Profile resource in AWS cloud provider....
This module may be used to create IAM Instance Profile resources in AWS cloud provider.....
This module needs Terraform 0.12.18 or newer. You can download the latest Terraform version from here.
This module deploys aws services details are in respective feature branches.
Below we are able to check the resources that are being created as part of this module call:
- IAM Instance Profile
To use this module, add the following call to your code:
module "iam_instance_profile" {
source = "git::https://github.com/nitinda/terraform-module-aws-iam-instance-profile.git?ref=master"
providers = {
aws = aws.services
}
## IAM Role
name = "iam-instance-profile-ec2"
path = "/service-role/"
role = var.iam_role_name
}
module "iam_instance_profile" {
source = "git::https://github.com/nitinda/terraform-module-aws-iam-instance-profile.git?ref=master"
providers = {
aws = aws.services
}
## IAM Role
name = "iam-instance-profile-ec2"
}
module "iam_instance_profile" {
source = "git::https://github.com/nitinda/terraform-module-aws-iam-instance-profile.git?ref=master"
providers = {
aws = aws.services
}
## IAM Role
name = "iam-instance-profile-ec2"
role = var.iam_role_name
}
The variables required in order for the module to be successfully called from the deployment repository are the following:
Variable | Description | Type | Argument Status | Default Value |
---|---|---|---|---|
name | The profile's name | string | Optional | null |
name_prefix | Creates a unique name beginning with the specified prefix |
string | Optional | null |
path | Path in which to create the profile | string | Optional | / |
role | The role name to include in the profile | string | Optional | null |
This module has the following outputs:
- id
- arn
- name
- role
In order for the variables to be accessed at module level please use the syntax below:
module.<module_name>.<output_variable_name>
The output variable is able to be accessed through terraform state file using the syntax below:
data.terraform_remote_state.<layer_name>.<output_variable_name>
Module maintained by Module maintained by the - Nitin Das