Skip to main content

conformance_packs

Creates, updates, deletes or gets a conformance_pack resource or lists conformance_packs in a region

Overview

Nameconformance_packs
TypeResource
DescriptionA conformance pack is a collection of AWS Config rules and remediation actions that can be easily deployed as a single entity in an account and a region or across an entire AWS Organization.
Idawscc.config.conformance_packs

Fields

NameDatatypeDescription
conformance_pack_namestringName of the conformance pack which will be assigned as the unique identifier.
delivery_s3_bucketstringAWS Config stores intermediate files while processing conformance pack template.
delivery_s3_key_prefixstringThe prefix for delivery S3 bucket.
template_bodystringA string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
template_s3_uristringLocation of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
template_ssm_document_detailsobjectThe TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
conformance_pack_input_parametersarrayA list of ConformancePackInputParameter objects.
regionstringAWS region.

For more information, see AWS::Config::ConformancePack.

Methods

NameResourceAccessible byRequired Params
create_resourceconformance_packsINSERTConformancePackName, region
delete_resourceconformance_packsDELETEIdentifier, region
update_resourceconformance_packsUPDATEIdentifier, PatchDocument, region
list_resourcesconformance_packs_list_onlySELECTregion
get_resourceconformance_packsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual conformance_pack.

SELECT
region,
conformance_pack_name,
delivery_s3_bucket,
delivery_s3_key_prefix,
template_body,
template_s3_uri,
template_ssm_document_details,
conformance_pack_input_parameters
FROM awscc.config.conformance_packs
WHERE
region = 'us-east-1' AND
Identifier = '{{ conformance_pack_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new conformance_pack resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.config.conformance_packs (
ConformancePackName,
region
)
SELECT
'{{ conformance_pack_name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a conformance_pack resource, using stack-deploy.

/*+ update */
UPDATE awscc.config.conformance_packs
SET PatchDocument = string('{{ {
"DeliveryS3Bucket": delivery_s3_bucket,
"DeliveryS3KeyPrefix": delivery_s3_key_prefix,
"TemplateBody": template_body,
"TemplateS3Uri": template_s3_uri,
"TemplateSSMDocumentDetails": template_ssm_document_details,
"ConformancePackInputParameters": conformance_pack_input_parameters
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ conformance_pack_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.config.conformance_packs
WHERE
Identifier = '{{ conformance_pack_name }}' AND
region = 'us-east-1';

Permissions

To operate on the conformance_packs resource, the following permissions are required:

config:PutConformancePack,
config:DescribeConformancePackStatus,
config:DescribeConformancePacks,
s3:GetObject,
s3:GetBucketAcl,
iam:CreateServiceLinkedRole,
iam:PassRole