turbot/terraform_aws_compliance

Query: ecr_repository_tags_immutable

Usage

powerpipe query terraform_aws_compliance.query.ecr_repository_tags_immutable

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'image_tag_mutability') :: text = 'IMMUTABLE' then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'image_tag_mutability') :: text = 'IMMUTABLE' then ' has immutable tags'
else ' does not have immutable tags'
end || '.' as reason,
path || ':' || start_line
from
terraform_resource
where
type = 'aws_ecr_repository';

Controls

The query is being used by the following controls: