This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Config::ConformancePack
A conformance pack is a collection of AWS Config rules and remediation actions that can be easily deployed in an account and a region. ConformancePack creates a service linked role in your account. The service linked role is created only when the role does not exist in your account.
To create a custom conformance pack, specify one of TemplateBody, TemplateS3Uri, or TemplateSSMDocumentDetails.
To create a managed conformance pack, specify Source. A managed conformance pack is a collection of
AWS Config rules that AWS builds and maintains for a compliance or governance framework.
AWS updates a deployed managed conformance pack automatically when new AWS Config managed rules map to the framework's controls, or when the framework is revised.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Config::ConformancePack", "Properties" : { "ConformancePackInputParameters" :[ ConformancePackInputParameter, ... ], "ConformancePackName" :String, "DeliveryS3Bucket" :String, "DeliveryS3KeyPrefix" :String, "Scope" :Scope, "Source" :Source, "Tags" :[ Tag, ... ], "TemplateBody" :String, "TemplateS3Uri" :String, "TemplateSSMDocumentDetails" :TemplateSSMDocumentDetails} }
YAML
Type: AWS::Config::ConformancePack Properties: ConformancePackInputParameters:- ConformancePackInputParameterConformancePackName:StringDeliveryS3Bucket:StringDeliveryS3KeyPrefix:StringScope:ScopeSource:SourceTags:- TagTemplateBody:StringTemplateS3Uri:StringTemplateSSMDocumentDetails:TemplateSSMDocumentDetails
Properties
ConformancePackInputParameters-
A list of ConformancePackInputParameter objects.
A custom conformance pack can have a maximum of 60 input parameters. A managed conformance pack can have a maximum of 330 input parameters.
Required: No
Type: Array of ConformancePackInputParameter
Minimum:
0Maximum:
60Update requires: No interruption
ConformancePackName-
Name of the conformance pack you want to create.
Required: Yes
Type: String
Pattern:
[a-zA-Z][-a-zA-Z0-9]*Minimum:
1Maximum:
256Update requires: Replacement
DeliveryS3Bucket-
The name of the Amazon S3 bucket where AWS Config stores conformance pack templates.
Required: No
Type: String
Minimum:
0Maximum:
63Update requires: No interruption
DeliveryS3KeyPrefix-
The prefix for the Amazon S3 bucket.
Required: No
Type: String
Minimum:
0Maximum:
1024Update requires: No interruption
Scope-
The tag key, and optional tag value, that defines which resources trigger an evaluation for the AWS Config rules in a managed conformance pack. If you don't specify a scope, the rules in the conformance pack are unscoped.
You can only specify
Scopefor a managed conformance pack. If you specifyScope, you must also specifySource.Required: No
Type: Scope
Update requires: No interruption
Source-
The managed conformance pack to deploy. If you specify
Source, AWS Config creates a managed conformance pack. AWS builds and maintains managed conformance packs for specific compliance and governance frameworks, and keeps your deployed pack up to date as the framework and the available AWS Config managed rules change.If you specify
Source, you can't specifyTemplateBody,TemplateS3Uri,TemplateSSMDocumentDetails,DeliveryS3Bucket, orDeliveryS3KeyPrefix. You can't convert an existing conformance pack between a managed conformance pack and a custom conformance pack.Required: No
Type: Source
Update requires: Replacement
Property description not available.
Required: No
Type: Array of Tag
Maximum:
50Update requires: No interruption
TemplateBody-
A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
NoteYou can only use a YAML template with two resource types: config rule (
AWS::Config::ConfigRule) and a remediation action (AWS::Config::RemediationConfiguration).Required: No
Type: String
Minimum:
1Maximum:
51200Update requires: No interruption
TemplateS3Uri-
Location of file containing the template body (s3://bucketname/prefix). The uri must point to the conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket.
NoteYou must have access to read Amazon S3 bucket.
Required: No
Type: String
Pattern:
s3://.*Minimum:
1Maximum:
1024Update requires: No interruption
TemplateSSMDocumentDetails-
An object that contains the name or Amazon Resource Name (ARN) of the AWS Systems Manager document (SSM document) and the version of the SSM document that is used to create a conformance pack.
Required: No
Type: TemplateSSMDocumentDetails
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the name of the conformance pack.
For more information about using the Ref function, see Ref.
Fn::GetAtt
ConformancePackArn-
Amazon Resource Name (ARN) of the conformance pack.
Type-
The type of the conformance pack. Valid values:
-
CUSTOM– A custom conformance pack. -
MANAGED– A managed conformance pack.
-
Examples
Conformance Pack
The following example creates a conformance pack.
JSON
{ "Resources": { "ConformancePack": { "Type": "AWS::Config::ConformancePack", "Properties": { "ConformancePackName": "ConformancePackName", "DeliveryS3Bucket": "DeliveryS3Bucket", "TemplateS3Uri": "s3://bucketname/prefix" } } } }
YAML
--- AWSTemplateFormatVersion: 2010-09-09 Resources: CloudFormationCanaryPack: Type: AWS::Config::ConformancePack Properties: ConformancePackName: ConformancePackName DeliveryS3Bucket: DeliveryS3Bucket TemplateS3Uri: s3://bucketname/prefix
Managed conformance pack
The following example creates a managed conformance pack from the NIST SP 800-53 Rev. 5 managed conformance pack. The scope limits the rules in the conformance pack to resources that have the tag key Environment with the value Production.
JSON
{ "Resources": { "ManagedConformancePack": { "Type": "AWS::Config::ConformancePack", "Properties": { "ConformancePackName": "ManagedConformancePackName", "Source": { "SourceIdentifier": "NIST-SP-800-53_R5" }, "Scope": { "TagKey": "Environment", "TagValue": "Production" } } } } }
YAML
--- AWSTemplateFormatVersion: 2010-09-09 Resources: ManagedConformancePack: Type: AWS::Config::ConformancePack Properties: ConformancePackName: ManagedConformancePackName Source: SourceIdentifier: NIST-SP-800-53_R5 Scope: TagKey: Environment TagValue: Production