Improve this page

Back to AWS Terraform templates index <–

AWS iam role policy with Terraform

Aws_iam_role_policy by the Sogeti community.

Template Locations

Online documentation

Template reference
Service description

module "aws_iam_role_policy" {
    source = ""
    role_name = "Ec2_role"
    assume_role_policy = "${file("assume_role_policy.json")}"
    policy_name = "AmazonS3FullAccess"
    role_policy = "${file("role-policy.json")}"
}