AWS Glue Dev Endpoint
This page shows how to write Terraform and CloudFormation for AWS Glue Dev Endpoint and write them securely.
aws_glue_dev_endpoint (Terraform)
The Dev Endpoint in AWS Glue can be configured in Terraform with the resource name aws_glue_dev_endpoint. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_glue_dev_endpoint" "privesc-glue-devendpoint" {
name = "privesc-glue-devendpoint"
role_arn = aws_iam_role.privesc-glue-devendpoint-role.arn
}
resource "aws_iam_role" "privesc-glue-devendpoint-role" {
Parameters
-
argumentsoptional - map from string to string -
arnoptional computed - string -
availability_zoneoptional computed - string -
extra_jars_s3_pathoptional - string -
extra_python_libs_s3_pathoptional - string -
failure_reasonoptional computed - string -
glue_versionoptional - string -
idoptional computed - string -
namerequired - string -
number_of_nodesoptional - number -
number_of_workersoptional - number -
private_addressoptional computed - string -
public_addressoptional computed - string -
public_keyoptional - string -
public_keysoptional - set of string -
role_arnrequired - string -
security_configurationoptional - string -
security_group_idsoptional - set of string -
statusoptional computed - string -
subnet_idoptional - string -
tagsoptional - map from string to string -
vpc_idoptional computed - string -
worker_typeoptional - string -
yarn_endpoint_addressoptional computed - string -
zeppelin_remote_spark_interpreter_portoptional computed - number
Explanation in Terraform Registry
Provides a Glue Development Endpoint resource.
AWS::Glue::DevEndpoint (CloudFormation)
The DevEndpoint in Glue can be configured in CloudFormation with the resource name AWS::Glue::DevEndpoint. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::Glue::DevEndpoint
Properties:
NumberOfWorkers: 2
WorkerType: Standard
RoleArn: !GetAtt SageMakerNotebookInstance1ExecutionRole.Arn
Tags: {
Type: AWS::Glue::DevEndpoint
DeletionPolicy: "Delete"
DependsOn: "SecurityGroupIgress2"
Properties:
Arguments:
GLUE_PYTHON_VERSION: 3
Type: AWS::Glue::DevEndpoint
Properties:
EndpointName: !Join [ '-', [!Ref StackPrefix, 'Glue-Dev-Endpoint'] ]
Arguments: { "--enable-glue-datacatalog": "" }
GlueVersion: 1.0
#NumberOfNodes: 3
Type: AWS::Glue::DevEndpoint
Properties:
EndpointName: !Ref EndpointName
NumberOfNodes: !Ref NumberOfNode
PublicKey:
Fn::FindInMap:
Type: "AWS::Glue::DevEndpoint"
Properties:
EndpointName: partition-endpoint
PublicKey: !Ref PublicKeyParameter
RoleArn: !GetAtt GlueRole.Arn
"AWS::Glue::DevEndpoint": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html",
"Properties": {
"ExtraJarsS3Path": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrajarss3path",
"AWS::Glue::DevEndpoint": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html",
"Properties": {
"ExtraJarsS3Path": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrajarss3path",
"AWS::Glue::DevEndpoint": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html",
"Properties": {
"ExtraJarsS3Path": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrajarss3path",
"AWS::Glue::DevEndpoint": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html",
"Properties": {
"ExtraJarsS3Path": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrajarss3path",
"AWS::Glue::DevEndpoint": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html",
"Properties": {
"ExtraJarsS3Path": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-extrajarss3path",
Parameters
-
ExtraJarsS3Pathoptional - String -
PublicKeyoptional - String -
NumberOfNodesoptional - Integer -
Argumentsoptional - Json -
SubnetIdoptional - String -
PublicKeysoptional - List -
SecurityGroupIdsoptional - List -
RoleArnrequired - String -
WorkerTypeoptional - String -
EndpointNameoptional - String -
GlueVersionoptional - String -
ExtraPythonLibsS3Pathoptional - String -
SecurityConfigurationoptional - String -
NumberOfWorkersoptional - Integer -
Tagsoptional - Json
Explanation in CloudFormation Registry
The
AWS::Glue::DevEndpointresource specifies a development endpoint where a developer can remotely debug ETL scripts for AWS Glue. For more information, see DevEndpoint Structure in the AWS Glue Developer Guide.
Frequently asked questions
What is AWS Glue Dev Endpoint?
AWS Glue Dev Endpoint is a resource for Glue of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Glue Dev Endpoint?
For Terraform, the BishopFox/iam-vulnerable source code example is useful. See the Terraform Example section for further details.
For CloudFormation, the zoph-io/instance-watcher, goodbyegangster/cloudformation and nmukerje/GlueWorkshop source code examples are useful. See the CloudFormation Example section for further details.