turbot/aws_insights

Query: appconfig_applications_for_codepipeline_pipeline

Usage

powerpipe query aws_insights.query.appconfig_applications_for_codepipeline_pipeline

SQL

select
arn as app_arn
from
aws_appconfig_application
where
id in (
select
a -> 'Configuration' ->> 'Application'
from
aws_codepipeline_pipeline,
jsonb_array_elements(stages) as s,
jsonb_array_elements(s -> 'Actions') as a
where
s ->> 'Name' = 'Deploy'
and a -> 'ActionTypeId' ->> 'Provider' = 'AppConfig'
and arn = $1
);