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
demandé il y a 8 mois606 vues
1 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions