hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.77k stars 9.12k forks source link

[Enhancement]: Allow empty default permissions in Lakeformation DataLake Settings #27482

Open ahmedmahmo opened 1 year ago

ahmedmahmo commented 1 year ago

Description

The terraform resource for managing lake formation settings (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lakeformation_data_lake_settings) doesn’t allow setting empty list of permissions for create_database_default_permissions and create_table_default_permissions attributes, and when these attributes are not set terraform will not enforce the default permissions to be empty.

We would like to use following terraform configuration to enforce that:

resource "aws_lakeformation_data_lake_settings" "default" {
  ...

  create_database_default_permissions {
    permissions = []
  }

  create_table_default_permissions {
    permissions = []
  }
}

We would like to fix this behavior in terraform AWS provider, and to make it officially supported the fix should be contribute to the official provider codebase.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_lakeformation_data_lake_settings" "default" {
  ...

  create_database_default_permissions {
    permissions = []
  }

  create_table_default_permissions {
    permissions = []
  }
}

References

No response

Would you like to implement a fix?

Yes

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue