No description
|
||
---|---|---|
.forgejo/workflows | ||
infrastructure/tofu | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
main.tf | ||
main.tftest.hcl | ||
outputs.tf | ||
providers.tf | ||
README.md | ||
variables.tf |
AWS IAM role
This module configures an IAM role in an AWS account. It works conjointly with my tofu module for IAM user.
It provides a default policy allowing my Forgejo workflows to run tests and continuous integration tasks on AWS.
Usage example
module "aws_iam_role" {
source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-role?depth=1&ref=1.1.0"
name = local.name
policy_statements = jsonencode([
{
Action = "acm:*"
Effect = "Allow"
Resource = "*"
},
])
}
Policies
The IAM role is granted the following permissions on the AWS account:
- Access specified by the
var.policy_statements
JSON encoded list. - Read the role IAM object.