marmotdata/gluepipeline
Discover workflows, tasks and run history from AWS Glue
The Glue Pipelines plugin discovers AWS Glue workflows as Pipeline assets, their steps as Task assets, and the run history of the workflows, jobs and crawlers in the account.
It shares the Glue provider with the Glue plugin, so a workflow step links to the job or crawler asset that plugin already created rather than a copy of it. This plugin creates no Job, Crawler, Database or Bucket assets, only the lineage edges and the run history that point at them.
A workflow is mrn://asset/pipeline/glue/<workflow> and a step is mrn://asset/task/glue/<workflow>.<step>. The zone option becomes part of every MRN, so set the same zone on this plugin and on the Glue plugin when you run more than one AWS account. The name is one you choose, not a cloud availability zone.
Required Permissions
AWS Configuration
See AWS Configuration for the supported AWS configuration options.
Tests
Unit tests need nothing. The end-to-end tests run against a Glue endpoint:
docker run -d --name marmot-test-gluepipeline -p 15560:5000 motoserver/moto:latest
MARMOT_TEST_GLUEPIPELINE_ENDPOINT=http://localhost:15560 go test ./...
Keyless authentication
On Marmot Cloud or Marmot Enterprise the pipeline can present its own identity instead of access keys. Register your Marmot instance as an IAM OIDC identity provider (client id sts.amazonaws.com), create a role whose trust policy allows sts:AssumeRoleWithWebIdentity for that provider with <issuer host>:sub equal to the pipeline's subject, pipeline:<name> as reported by the pipeline API, and set credentials.role_arn and credentials.region. No key exists anywhere; Marmot mints a short-lived token for each run.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick AWS Glue Pipelines from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
credentialsGroup of settingsAWS credentials configuration
use_defaultYes or noUse AWS credentials from environment or default profile (recommended)
idTextAWS access key ID
secretSecretAWS secret access key
tokenSecretAWS session token
profileTextAWS profile to use from shared credentials file
role_arnTextIAM role to assume with the Marmot identity token (AssumeRoleWithWebIdentity); its trust policy names the Marmot issuer as an OIDC provider. Setting it federates: no keys are needed, and region is required. role, if also set, is assumed on top of it
roleTextAWS IAM role ARN to assume with AssumeRole from the base credentials (static keys, a profile, the default chain, or role_arn)
role_external_idTextExternal ID for cross-account role assumption
regionTextAWS region for services
endpointTextCustom endpoint URL for AWS services
tags_to_metadataYes or noConvert AWS tags to Marmot metadata
include_tagsList of textList of AWS tags to include as metadata. By default, all tags are included.
audienceTextAudience of the Marmot identity token. Derived from the credentials' federation settings; set it only when the cloud side expects another
include_workflowsYes or noWhether to discover Glue workflows
include_triggersYes or noWhether to read trigger definitions
include_run_historyYes or noWhether to collect workflow, job and crawler runs
run_history_limitNumberHow many recent runs to read per workflow, job and crawler
include_crawlersYes or noWhether to read crawlers for lineage and runs
Assets emitted
Metadata this plugin attaches to each discovered asset.
Pipeline
The metadata a workflow Pipeline asset carries.
Task
The metadata a workflow step Task asset carries.
Run Facet
The facets attached to run history events.