View a markdown version of this page

Troubleshooting the AWS AppConfig extension in AWS Systems Manager Cloud Extensions - AWS Systems Manager

Troubleshooting the AWS AppConfig extension in AWS Systems Manager Cloud Extensions

Find solutions to common problems with the AWS AppConfig extension, such as stale configurations, missing flags, and access errors.

Your application reads an old configuration

Symptom: You deployed a new configuration version, but your application still reads the old one.

The extension picks up a new deployment at its next poll. Check that the deployment is complete in AWS AppConfig, and check the Poll interval setting. Lower the value if your application needs changes sooner:

aws cloudextensions get-profile-entry \ --profile-identifier my-application \ --identifier profile-entry-id \ --query 'effectiveSettings'

A configuration isn't found

Symptom: The extension returns RESOURCE_NOT_FOUND.

Check the names or IDs of the application, environment, and configuration profile. Check that you deployed a configuration version to the environment in the Region that the extension uses. The extension keeps trying in the background, so it picks up a configuration that you deploy later.

A flag isn't found or can't be read

Symptom: GetFlag returns FLAG_NOT_FOUND or FLAG_UNREADABLE.

For FLAG_NOT_FOUND, check the flag key. Keys are case-sensitive. For FLAG_UNREADABLE, the configuration profile isn't of type AWS.AppConfig.FeatureFlags. Use GetConfiguration for a freeform profile.

Access denied

Symptom: The extension returns AccessDeniedException.

If the reason is MISSING_AUTHENTICATION, SIGNATURE_EXPIRED, UNKNOWN_ACCESS_KEY, IAM_CREDENTIAL_USED, or SIGNATURE_MISMATCH, the profile requires signed requests. Sign each request with the credentials of the runtime. If the profile uses an extension key, sign with the access key ID and the secret key of the profile. For more information, see Authentication. Otherwise, check that the IAM execution role allows appconfig:StartConfigurationSession and appconfig:GetLatestConfiguration on the configuration, in the Region that the extension uses. For the policy, see Required IAM permissions.

The extension can't reach AWS AppConfig

Symptom: The extension returns 500 InternalServerException with the message Unable to call AWS AppConfig.

Check that you approved the appconfigdata capability on the profile entry, and that the runtime has network access to AWS AppConfig. For the steps, see Approving capabilities.

The extension doesn't start

Symptom: Every request returns 502 BadGatewayException with EXTENSION_INITIALIZE_FAILED.

A setting isn't valid. Check the settings against Descriptions of settings, and check the logs of the extension for the setting that failed.

The runtime returns UNKNOWN_OPERATION

Symptom: The runtime returns 400 with the reason UNKNOWN_OPERATION.

The profile doesn't include the extension, the path is wrong, the X-Amz-Target header names an unknown operation, or the content type isn't application/x-amz-json-1.1. The endpoint is /appconfig/, and the targets are AppConfig.GetConfiguration and AppConfig.GetFlag.

The runtime returns ServiceUnavailableException

Symptom: The runtime returns 503 ServiceUnavailableException.

The extension is still loading, or a settings update replaced it during the call. Retry the request. If the error continues, check the log of the runtime.