Resource: aws_glue_dev_endpoint

Provides a Glue Development Endpoint resource.

Example Usage

Basic usage:

resource "aws_glue_dev_endpoint" "example" {
  name     = "foo"
  role_arn = aws_iam_role.example.arn
}

resource "aws_iam_role" "example" {
  name               = "AWSGlueServiceRole-foo"
  assume_role_policy = data.aws_iam_policy_document.example.json
}

data "aws_iam_policy_document" "example" {
  statement {
    actions = ["sts:AssumeRole"]

    principals {
      type        = "Service"
      identifiers = ["glue.amazonaws.com"]
    }
  }
}

resource "aws_iam_role_policy_attachment" "example-AWSGlueServiceRole" {
  policy_arn = "arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole"
  role       = aws_iam_role.example.name
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import a Glue Development Endpoint using the name. For example:

import {
  to = aws_glue_dev_endpoint.example
  id = "foo"
}

Using terraform import, import a Glue Development Endpoint using the name. For example:

% terraform import aws_glue_dev_endpoint.example foo