Skip to content

Latest commit

 

History

History

appconfig-feature-flag-cdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWS AppConfig Feature Flag to AWS Lambda with CDK

This pattern demonstrates how to build the AppConfig feature flag with CDK and how to use AppConfig extension for Lambda to retrive the feature flag status.

Learn more about this pattern at Serverless Land Patterns: https://serverlessland.com/patterns/appconfig-feature-flag-cdk

Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.

Requirements

Deployment Instructions

  1. Create a new directory, navigate to that directory in a terminal and clone the GitHub repository:

    git clone https://github.com/aws-samples/serverless-patterns
    
  2. Change directory to the pattern directory:

    cd appconfig-feature-flag-cdk
    
  3. Run below command to install required dependancies:

    npm install && cd ./lambda && npm install && cd ./..
    
  4. Before proceed:

  5. From the command line, run:

    cdk deploy --all --parameters appConfigExtensionArn='[AppConfig Lambda extension layer ARN]'
    

Testing

  • Execute the Lambda function and you will see the AppConfig Feature Flag status output.

Cleanup

  1. To delete the stack, run:
    cdk destroy --all

Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0