---
title: "Discussion on \"Terraform - MalformedPolicyDocument: The policy failed legacy parsing\" | Hashnode"
description: "Discussion on \"Terraform - MalformedPolicyDocument: The policy failed legacy parsing\". I was affected by a bug in the AWS provider for Terraform recently.\nI've got the following error when applying Terraform changes:\nError: creating IAM Policy (MyPolicyName): MalformedPolicyDocument: The policy failed legacy parsing\n\nAccording to the A..."
url: "https://hashnode.com/posts/terraform-malformedpolicydocument-the-policy-failed-legacy-parsing/65761615995b4e6dbea4176d"
---

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

Discussion

# [Terraform - MalformedPolicyDocument: The policy failed legacy parsing](https://tymik.me/terraform-malformedpolicydocument-the-policy-failed-legacy-parsing?utm_source=hashnode&utm_medium=feed)

I was affected by a bug in the AWS provider for Terraform recently. I've got the following error when applying Terraform changes: Error: creating IAM Policy (MyPolicyName): MalformedPolicyDocument: The policy failed legacy parsing According to the A...

Dec 10, 2023 · 1 min read · tymik.me  
Read the article

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

## Written by

[Jan Tymiński](https://hashnode.com/@tymik)

@tymik · Poland

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

♾️ DevOps ☁️ AWS 🐳 Docker, Terraform, Automation

I started my professional career in 2012 as Systems Administrator and continued it until 2018 to become DevOps Engineer. I work with AWS since 2016 and I am 5 times certified AWS Specialist.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
