I want to use AppConfig feature flags in an application that is completely defined with CDK. Deployment is automated using CodePipeline that is triggered by changes in github repo. I would like to be able to deploy the AppConfig and the initial state of the flags as a part of the application deployment.
I am trying to figure out a way to be able to make use of toggling the feature flags in AWS console without redeploying the whole application.
My problem is, how does one deal with the values in the code falling out of sync with the flags that are toggled from console (For example when the branch is first deployed my_flag
is False
, and later I toggle it to True
. Then I make some code change and push it and now there is a clash between the state of the flag in code and in reality, that was changed via console.) What is the best practice for reconciling use of IaC and AWS console here?