Amazon Glue and interface VPC endpoints (Amazon PrivateLink) - Amazon Glue
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Amazon Glue and interface VPC endpoints (Amazon PrivateLink)

You can establish a private connection between your VPC and Amazon Glue by creating an interface VPC endpoint. Interface endpoints are powered by Amazon PrivateLink, a technology that enables you to privately access Amazon Glue APIs without an internet gateway, NAT device, VPN connection, or Amazon Direct Connect connection. Instances in your VPC don't need public IP addresses to communicate with Amazon Glue APIs. Traffic between your VPC and Amazon Glue does not leave the Amazon network.

Each interface endpoint is represented by one or more Elastic Network Interfaces in your subnets.

For more information, see Interface VPC endpoints (Amazon PrivateLink) in the Amazon VPC User Guide.

Considerations for Amazon Glue VPC endpoints

Before you set up an interface VPC endpoint for Amazon Glue, ensure that you review Interface endpoint properties and limitations in the Amazon VPC User Guide.

Amazon Glue supports making calls to all of its API actions from your VPC.

Creating an interface VPC endpoint for Amazon Glue

You can create a VPC endpoint for the Amazon Glue service using either the Amazon VPC console or the Amazon Command Line Interface (Amazon CLI). For more information, see Creating an interface endpoint in the Amazon VPC User Guide.

Create a VPC endpoint for Amazon Glue using the following service name:

  • com.amazonaws.region.glue

If you enable private DNS for the endpoint, you can make API requests to Amazon Glue using its default DNS name for the Region, for example, glue.us-east-1.amazonaws.com.

For more information, see Accessing a service through an interface endpoint in the Amazon VPC User Guide.

Creating a VPC endpoint policy for Amazon Glue

You can attach an endpoint policy to your VPC endpoint that controls access to Amazon Glue. The policy specifies the following information:

  • The principal that can perform actions.

  • The actions that can be performed.

  • The resources on which actions can be performed.

For more information, see Controlling access to services with VPC endpoints in the Amazon VPC User Guide.

Example: VPC endpoint policy for Amazon Glue to allow job creation and update

The following is an example of an endpoint policy for Amazon Glue. When attached to an endpoint, this policy grants access to the listed Amazon Glue actions for all principals on all resources.

{ "Statement":[ { "Principal":"*", "Effect":"Allow", "Action":[ "glue:CreateJob", "glue:UpdateJob", "iam:PassRole" ], "Resource":"*" } ] }

Example: VPC endpoint policy to allow read-only Data Catalog access

The following is an example of an endpoint policy for Amazon Glue. When attached to an endpoint, this policy grants access to the listed Amazon Glue actions for all principals on all resources.

{ "Statement": [ { "Principal": "*", "Effect": "Allow", "Action": [ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", "glue:GetTables", "glue:GetTableVersion", "glue:GetTableVersions", "glue:GetPartition", "glue:GetPartitions", "glue:BatchGetPartition", "glue:SearchTables" ], "Resource": "*" } ] }