githubEdit

AWS Config Rules

circle-info

This page was generated from content adapted from the AWS Developer Guidearrow-up-right

Components of a Rule

  • Note Before using pip, make sure it is installed on your machine.

  • Note Before using pip, make sure it is installed on your machine.

  • Note To use the RDKLib, the runtime of the rule must be set to python3.6-lib.

  • Note To use the RDKLib, the runtime of the rule must be set to python3.6-lib.

Evaluation Mode

  • Note Proactive rules do not remediate resources that are flagged as NON_COMPLIANT or prevent them from being deployed.

Custom Rules

  • Note High Number of Lambda Function Invocations AWS Config Custom Lambda Rules can cause a high number of Lambda function invocations if the rule is not scoped to one or more resource types. To avoid increased activity associated with your account, provide resources in scope for your Custom Lambda rules. If no resource types are selected, the rule will invoke the Lambda function for all resources in the account.

Managing Your Rules

Evaluating Your Resources

  • Note Proactive rules do not remediate resources that are flagged as NON_COMPLIANT or prevent them from being deployed.

  • Note You can also turn on proactive evaluation using the http://docs.aws.amazon.com/cli/latest/reference/configservice/put-config-rule.htmlarrow-up-right command and enabling PROACTIVE for EvaluationModes or using the PutConfigRulearrow-up-right action and enabling PROACTIVE for EvaluationModes.

  • Note You can re-evaluate a rule once per minute. You must wait for AWS Config to complete the evaluation for your rule before you start another evaluation. You can't run an evaluation if at the same time the rule is being updated or if the rule is being deleted.

Managing Organizational Rules

  • Note For deployments across different regions The API call to deploy rules and conformance packs across accounts is region specific. At the organization level, you need to change the context of your API call to a different region if you want to deploy rules in other regions. For example, to deploy a rule in US East (N. Virginia), change the region to US East (N. Virginia) and then call PutOrganizationConfigRule. For accounts within an organization If a new account joins an organization, the rule or conformance pack is deployed to that account. When an account leaves an organization, the rule or conformance pack is removed. If you deploy an organizational rule or conformance pack in an organization administrator account, and then establish a delegated administrator and deploy an organizational rule or conformance pack in the delegated administrator account, you won't be able to see the organizational rule or conformance pack in the organization administrator account from the delegated administrator account or see the organizational rule or conformance pack in the delegated administrator account from organization administrator account. The DescribeOrganizationConfigRulesarrow-up-right and DescribeOrganizationConformancePacksarrow-up-right APIs can only see and interact with the organization-related resource that were deployed from within the account calling those APIs. Retry mechanism for new accounts added to an organization Deployment of existing organizational rules and conformance packs will only be retried for 7 hours after an account is added to your organization if a recorder is not available. You are expected to create a recorder if one doesn't exist within 7 hours of adding an account to your organization.

Remediating Noncompliant Resources

  • Note For troubleshooting failed remediation actions, you can run the AWS Command Line Interface command describe-remediation-execution-status to get detailed view of a Remediation Execution for a set of resources. The details include state, timestamps for remediation execution steps, and any error messages for the failed steps.

  • Note For troubleshooting failed remediation actions, you can run the AWS Command Line Interface command describe-remediation-execution-status to get detailed view of a Remediation Execution for a set of resources. The details include state, timestamps for remediation execution steps, and any error messages for the failed steps.

Last updated