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달 전604회 조회
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달 전

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

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

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

관련 콘텐츠