Terraform module to create AWS IAM Role. Currently supported type of Roles are:
- Role for AWS Service
- Role for IAM User
- Role for External AWS Account
- Role for Instance Profile
- Role for Lambda
This module will only create an IAM Role and its Trust Relationships policy document. You need to attach your own Permission policy document outside the module.
To use a particular type of supported role, you can go into modules
folder and read README.md
at each subfolder for more detailed information.
To understand better on how to implement this module, you can go into examples
folder and try them.
- Service Role for Config
- IAM Role for User
- IAM Role for 3rd Party AWS Account
- IAM Role for Instance Profile
- IAM Role for Lambda
To run the test:
- Install Ruby with version specified in the Gemfile.
- Install bundler:
gem install bundler
- Install gems:
bundle install
- Run test from the root of the repository:
bundle exec kitchen test
This module was created using Terraform 0.11.4. So to be more safe, Terraform version 0.11.4 or newer is required to use this module.
Minimum required version for AWS Provider is 1.14.0
Apache 2 Licensed. See LICENSE for full details.