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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南