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
gefragt vor 8 Monaten604 Aufrufe
1 Antwort
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
SUPPORT-TECHNIKER
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen