Editing Conformance Packs for AWS Config
You can use the AWS Config console or the AWS CLI to edit your conformance packs. For a managed conformance pack, you can change the resource scope, parameters, and tags. You can't change the name, the source, or the conformance pack type. To change the source or the type, delete the conformance pack and deploy it again.
- Editing Conformance Packs (Console)
-
-
To edit a conformance pack, select the conformance pack from the table.
-
Choose Actions and then choose Edit.
-
For a custom conformance pack, on the Edit conformance pack page, you can edit the template details, sample template, conformance pack, and parameters section. You can't change the name of the conformance pack.
For a managed conformance pack, on the Edit conformance pack settings page, update the Resource scope, Parameters, and Tags. Choose Next, and then review your changes on the Review and save page.
-
Choose Save changes.
The conformance pack is displayed with the AWS Config rules.
-
- Editing Conformance Packs (AWS CLI)
-
If you are editing a conformance pack that you added previously, use the same
PutConformancePackcommand that you use when deploying a conformance pack.-
Open a command prompt or a terminal window.
-
Run one of the following commands to update a conformance pack named
MyConformancePack.Managed conformance pack
aws configservice put-conformance-pack --conformance-pack-name MyConformancePack --source SourceIdentifier=AWS-WAF_V10--scope TagKey=environment,TagValue=stagingFor the
sourceparameter, specify the same value as the existing conformance pack. Also specify every setting that you want to keep. If you omit a setting, it's removed. For example, if you omit thescopeparameter, the tag scope is removed from the conformance pack.For a custom conformance pack, the template source is either an Amazon S3 URI, a template that you upload, or an AWS Systems Manager document (SSM document).
Amazon S3 URI
aws configservice put-conformance-pack --conformance-pack-name MyConformancePack --template-s3-uri "s3://amzn-s3-demo-bucket/templateName.yaml" --delivery-s3-bucketamzn-s3-demo-bucketYAML template from your local directory
aws configservice put-conformance-pack --conformance-pack-name MyConformancePack --template-bodytemplate bodyAWS Systems Manager Document (Systems Manager Document)
aws configservice put-conformance-pack --conformance-pack-name MyConformancePack --template-ssm-document-details DocumentName=SSMDocumentName,DocumentVersion=SSMDocumentVersion--delivery-s3-bucketamzn-s3-demo-bucket -
Press Enter to run the command.
You should see output similar to the following.
{ "conformancePackArn": "arn:aws:config:us-west-2:AccountID:conformance-pack/MyConformancePack/conformance-pack-ID" }
NoteFor more information on creating a YAML template for a conformance pack, see Custom Conformance Pack.
-