[x] β I have searched the open/closed issues and my issue is not listed.
Versions
Module version [Required]:
1.6.4
Terraform version:
Terraform v1.5.7
Provider version(s):
v5.71.0
Expected behavior
state applied successfully
Actual behavior
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.efs.aws_efs_file_system_policy.this[0] will be created
+ resource "aws_efs_file_system_policy" "this" {
+ bypass_policy_lockout_safety_check = false
+ file_system_id = "fs-3823847328973"
+ id = (known after apply)
+ policy = jsonencode(
{
+ Version = "2012-10-17"
}
)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.efs.aws_efs_file_system_policy.this[0]: Creating...
β·
β Error: putting EFS File System Policy (fs-08d330b2c16d1c3f1): operation error EFS: PutFileSystemPolicy, https response error StatusCode: 400, RequestID: 3093c885-ab9c-4e8e-adb2-b2f0b9fefd30, InvalidPolicyException: Invalid policy JSON structure.
β
β with module.efs.aws_efs_file_system_policy.this[0],
β on .terraform/modules/efs/main.tf line 132, in resource "aws_efs_file_system_policy" "this":
β 132: resource "aws_efs_file_system_policy" "this" {
β
β΅
Description
the state
Versions
Module version [Required]: 1.6.4
Terraform version: Terraform v1.5.7
Provider version(s): v5.71.0
Expected behavior
state applied successfully
Actual behavior