Using AppConfig feature flags in CDK application

0

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?

1개 답변
0

My recommendation would be to use AWS AppConfig extensions - either use an existing AWS authored extension or author your own that will invoke the AWS AppConfig ON_DEPLOYMENT_COMPLETE action to push the update to your code repo in Github. You would likely need to handle ON_DEPLOYMENT_ROLLED_BACK should a rollback occur as well.

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠