---
title: "Discussion on \"Creating AWS IAM Roles and Policies using Terraform.\" | Hashnode"
description: "Discussion on \"Creating AWS IAM Roles and Policies using Terraform.\". Using Terraform for creating IAM roles and policies is to create a role that can be assumed by a Lambda function, and attach a managed policy and a custom policy to it.\nprovider.tf\nterraform {\n  required_providers {\n    aws = {\n      source = \"hashic..."
url: "https://hashnode.com/posts/creating-aws-iam-roles-and-policies-using-terraform/65e0906dd23a2df77b25763b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating AWS IAM Roles and Policies using Terraform.](https://balapradeeps.hashnode.dev/creating-aws-iam-roles-and-policies-using-terraform?utm_source=hashnode&utm_medium=feed)

Using Terraform for creating IAM roles and policies is to create a role that can be assumed by a Lambda function, and attach a managed policy and a custom policy to it. provider.tf terraform { required\_providers { aws = { source = "hashic...

Feb 29, 2024 · 2 min read · balapradeeps.hashnode.dev  
Read the article

-   [#terraform-iam-lambda-aws-techinnovation](https://hashnode.com/tag/terraform-iam-lambda-aws-techinnovation)

## Written by

[Balapradeep S](https://hashnode.com/@Balapradeep)

@Balapradeep

  
[View profile](https://hashnode.com/@Balapradeep)

DevOps Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Nehal Ingole](https://hashnode.com/@Nehal71)

[Feb 29, 2024](https://hashnode.com/posts/creating-aws-iam-roles-and-policies-using-terraform/65e0906dd23a2df77b25763b/comment/65e096ca7dea1a7fb54b347c)

Nice try , but you need to make it more informative I hope you understand Keep learning 😃

[Balapradeep S](https://hashnode.com/@Balapradeep)

[Mar 1, 2024](https://hashnode.com/posts/creating-aws-iam-roles-and-policies-using-terraform/65e0906dd23a2df77b25763b/comment/65e096ca7dea1a7fb54b347c#reply-65e1caf6a537196308d7629e)

Thank you for your feedback. I appreciate your honesty and your encouragement. I will try to make my responses more informative in the future :) .
