AWS Glue Resource Policy

This page shows how to write Terraform for AWS Glue Resource Policy and write them securely.

aws_glue_resource_policy (Terraform)

The Resource Policy in AWS Glue can be configured in Terraform with the resource name aws_glue_resource_policy. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconasrkata/SebastianUA-terraform
resource "aws_glue_resource_policy" "glue_resource_policy" {
  count = var.enable_glue_resource_policy ? 1 : 0

  policy = var.glue_resource_policy

  lifecycle {
github-iconSebastianUA/terraform
resource "aws_glue_resource_policy" "glue_resource_policy" {
  count = var.enable_glue_resource_policy ? 1 : 0

  policy = var.glue_resource_policy

  lifecycle {
github-iconSebastianUA/terraform-aws-glue
resource "aws_glue_resource_policy" "glue_resource_policy" {
  count = var.enable_glue_resource_policy ? 1 : 0

  policy = var.glue_resource_policy

  lifecycle {
github-iconCheckmarx/kics
resource "aws_glue_resource_policy" "example" {
  policy = data.aws_iam_policy_document.glue-example-policy.json
}
github-iconCheckmarx/kics
resource "aws_glue_resource_policy" "example2" {
  policy = data.aws_iam_policy_document.glue-example-policy2.json
}

Parameters

Explanation in Terraform Registry

Provides a Glue resource policy. Only one can exist per region.

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Glue Resource Policy?

AWS Glue Resource Policy is a resource for Glue of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Glue Resource Policy?

For Terraform, the asrkata/SebastianUA-terraform, SebastianUA/terraform and SebastianUA/terraform-aws-glue source code examples are useful. See the Terraform Example section for further details.

security-icon

Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.