Skip to content

ashwani-v/terraform-module-aws-iam-instance-profile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Module: terraform-module-aws-iam-instance-profile

Terraform module Provides an IAM Instance Profile resource in AWS cloud provider....

General

This module may be used to create IAM Instance Profile resources in AWS cloud provider.....


Prerequisites

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.


Features

Below we are able to check the resources that are being created as part of this module call:

  • IAM Instance Profile

Usage

Using this repo

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
}

Inputs

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

General

This module has the following outputs:

Outputs

  • id
  • arn
  • name
  • role

Usage

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>

Authors

Module maintained by Module maintained by the - Nitin Das

About

Terraform Module for AWS IAM Instance Profile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%