From c2c086b9c19e2fd6997b07df9d31188a0952d24f Mon Sep 17 00:00:00 2001 From: Florian Motlik Date: Fri, 9 Aug 2019 09:37:38 +0200 Subject: [PATCH] Increase StackSet Validation Frequency to 24 hours by default With the new Config Pricing running the Evaluations every 3 hours produces unnecessary costs where a 24 hour schedule (with parameter to reduce that time) is sufficient. --- .../validate_stack_set_deployments.template.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main-account-stacks/05-validate-stack-set-deployments/validate_stack_set_deployments.template.yaml b/main-account-stacks/05-validate-stack-set-deployments/validate_stack_set_deployments.template.yaml index f6297e0..7df09ba 100644 --- a/main-account-stacks/05-validate-stack-set-deployments/validate_stack_set_deployments.template.yaml +++ b/main-account-stacks/05-validate-stack-set-deployments/validate_stack_set_deployments.template.yaml @@ -3,6 +3,16 @@ Parameters: Type: String Description: Email address to notify in case the Validate Lambda function breaks Default: {{AWSMainAccount['Email']}} + ValidationFrequency: + Description: 'The frequency with which AWS Config delivers configuration snapshots' + Type: String + Default: TwentyFour_Hours + AllowedValues: + - One_Hour + - Three_Hours + - Six_Hours + - Twelve_Hours + - TwentyFour_Hours Resources: ValidateLambdaErrorTopic: @@ -100,5 +110,5 @@ Resources: SourceDetails: - EventSource: "aws.config" MessageType: "ScheduledNotification" - MaximumExecutionFrequency: Three_Hours + MaximumExecutionFrequency: !Ref ValidationFrequency SourceIdentifier: !GetAtt ValidateStackSetDeploymentsLambdaFunction.Arn