Create Freeform Feature Flag from S3 Object

  • Last Modified: 20 Mar, 2022

If you have a configuration file and you want to use it instead of re-creating everything from scratch.


Get Yours Today

Discover our wide range of products designed for IT professionals. From stylish t-shirts to cutting-edge tech gadgets, we've got you covered.

Explore Our Collection 🚀


If you have a configuration file and you want to use it instead of re-creating everything from scratch. Then you can still use it instead of AWS AppConfig’s feature flags.

Must Read:

If you have gone through the previous lessons, then I assume you already have an application set up in the AWS AppConfig. So I will leverage the same app with a different set of Config Profile. If not then you can read this article to understand AppConfig’s concept.

Step 01: Create a new file in any format (Text, JSON, Yaml, others)

I will use the JSON format to make it easy for me.

File Name: Config.json

{
    "phone_Login": {
      "enabled": false
    },
    "social_logins": {
      "enabled": true,
      "facebook": false,
      "facebook_css_style": "dark",
      "google": true,
      "google_css_style": "light"
    }
  }

Step 02: Create a new S3 bucket and upload your file into it.

Note: S3 bucket must have versioning enabled.

Step 03: Create a new Config Profile in the same existing App

Step 04: Choose the Free Form Configuration

Step 05: Choose the Amazon S3 Object

Step 06: Use the config.json’s URL from the S3 bucket in the S3 Object Source

Step 07: It will create a new Service Role

Note: Remove the validator for now.

Step 08: Create Configuration Profile

Step 09: Deploy to the dev environment

Step 10: It will be deployed to the Dev Environment in a couple of minutes.

Step 11: If you already have created the Lambda Function in the previous lessons, then you can change the const APP_CONFIG_CONFIG_PROFILE’s value and run the Lambda.

Step 12: Run the Lambda Function

...
Get Yours Today

Discover our wide range of products designed for IT professionals. From stylish t-shirts to cutting-edge tech gadgets, we've got you covered.

Explore Our Collection 🚀


comments powered by Disqus