AppConfig Feature Flags - create empty configuration profile

0

Hello - We're using the Feature Flags extension with AppConfig. When we initially create the config profile, it is empty as expected. Once we start adding feature flags and deploying them, we can no longer get back to that empty state (our feature flags are removed regularly once the feature has been enabled and is stable). We seem to always need to have at least one feature flag present. If we try to create an empty feature flag configuration with the create-hosted-configuration-version cli command, it returns:

An error occurred (BadRequestException) when calling the CreateHostedConfigurationVersion operation: Error invoking extension AppConfig Feature Flags Helper: Invalid 'Content' data

We've tried a few different iterations of data formatting, but the idea is to have empty flags and values objects similar to:

{
  "flags": {
  },
  "values": {
  },
  "version": "2"
}

Is there a way to create an empty feature flag config profile version that can be deployed?

ah
已提问 8 个月前606 查看次数
1 回答
0

Hello,

Hope you're doing well.

To answer the above question "Is there a way to create an empty feature flag config profile version that can be deployed?"

I am sorry to inform you that it is not possible to create an empty Feature flag configuration profile version. This is because the Profile version is only created when the Feature flag is created, but as you might already know that a feature flag cannot exist without a key and a value.

As a workaround I would request you to try to use "Freeform configuration" to meet your requirements. [+}: https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile.html#appconfig-creating-configuration-and-profile-free-form-configurations

I hope this information is helpful.

AWS
支持工程师
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则