Skip to content

aws.codepipeline.get_pipeline_execution

Example SQL Queries

SELECT * FROM
aws.codepipeline.get_pipeline_execution
WHERE
"pipeline_name" = 'VALUE'
AND "pipeline_execution_id" = 'VALUE';

Description

Returns information about an execution of a pipeline, including details about artifacts, the pipeline execution ID, and the name, version, and status of the pipeline.

Table Definition

Column NameColumn Data Type
pipeline_execution_id Required Input Column

The ID of the pipeline execution about which you want to get execution details.

VARCHAR
pipeline_name Required Input Column

The name of the pipeline about which you want to get execution details.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
pipeline_execution

Represents information about the execution of a pipeline.

STRUCT(
"pipeline_name" VARCHAR,
"pipeline_version" BIGINT,
"pipeline_execution_id" VARCHAR,
"status" VARCHAR,
"status_summary" VARCHAR,
"artifact_revisions" STRUCT(
"name" VARCHAR,
"revision_id" VARCHAR,
"revision_change_identifier" VARCHAR,
"revision_summary" VARCHAR,
"created" TIMESTAMP_S,
"revision_url" VARCHAR
)[],
"variables" STRUCT(
"name" VARCHAR,
"resolved_value" VARCHAR
)[],
"trigger" STRUCT(
"trigger_type" VARCHAR,
"trigger_detail" VARCHAR
),
"execution_mode" VARCHAR,
"execution_type" VARCHAR,
"rollback_metadata" STRUCT(
"rollback_target_pipeline_execution_id" VARCHAR
)
)
Show child fields
pipeline_execution.artifact_revisions[]
Show child fields
pipeline_execution.artifact_revisions[].created

The date and time when the most recent revision of the artifact was created, in timestamp format.

pipeline_execution.artifact_revisions[].name

The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an action is created.

pipeline_execution.artifact_revisions[].revision_change_identifier

An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the ETag value.

pipeline_execution.artifact_revisions[].revision_id

The revision ID of the artifact.

pipeline_execution.artifact_revisions[].revision_summary

Summary information about the most recent revision of the artifact. For GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary key specified in the object metadata.

pipeline_execution.artifact_revisions[].revision_url

The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit repositories, the commit ID is linked to a commit details page.

pipeline_execution.execution_mode

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

pipeline_execution.execution_type

The type of the pipeline execution.

pipeline_execution.pipeline_execution_id

The ID of the pipeline execution.

pipeline_execution.pipeline_name

The name of the pipeline with the specified pipeline execution.

pipeline_execution.pipeline_version

The version number of the pipeline with the specified pipeline execution.

pipeline_execution.rollback_metadata

The metadata about the execution pertaining to stage rollback.

Show child fields
pipeline_execution.rollback_metadata.rollback_target_pipeline_execution_id

The pipeline execution ID to which the stage will be rolled back.

pipeline_execution.status

The status of the pipeline execution.

  • Cancelled: The pipeline’s definition was updated before the pipeline execution could be completed.

  • InProgress: The pipeline execution is currently running.

  • Stopped: The pipeline execution was manually stopped. For more information, see Stopped Executions.

  • Stopping: The pipeline execution received a request to be manually stopped. Depending on the selected stop mode, the execution is either completing or abandoning in-progress actions. For more information, see Stopped Executions.

  • Succeeded: The pipeline execution was completed successfully.

  • Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead. For more information, see Superseded Executions.

  • Failed: The pipeline execution was not completed successfully.

pipeline_execution.status_summary

A summary that contains a description of the pipeline execution status.

pipeline_execution.trigger

The interaction or event that started a pipeline execution.

Show child fields
pipeline_execution.trigger.trigger_detail

Detail related to the event that started a pipeline execution, such as the webhook ARN of the webhook that triggered the pipeline execution or the user ARN for a user-initiated start-pipeline-execution CLI command.

pipeline_execution.trigger.trigger_type

The type of change-detection method, command, or user interaction that started a pipeline execution.

pipeline_execution.variables[]
Show child fields
pipeline_execution.variables[].name

The name of a pipeline-level variable.

pipeline_execution.variables[].resolved_value

The resolved value of a pipeline-level variable.