Unable to delete AppConfig

0

Hello, I created an AppConfig in Systems Manager (just as a test to learn about it). However, I'm unable to delete it. I get:

An error occurred (BadRequestException) when calling the DeleteApplication operation: Cannot delete application arn:aws:appconfig:us-east-1:xxxxxxxxxxxx:application/xxxxxxx because there are extensions associated with it. Please remove the extension associations to this application first.

The CLI documentation shows a list-extension-associations command, but when I try to run the command I get:

aws: error: argument operation: Invalid choice, valid choices are:

create-application                       | create-configuration-profile            
create-deployment-strategy               | create-environment                      
create-hosted-configuration-version      | delete-application                      
delete-configuration-profile             | delete-deployment-strategy              
delete-environment                       | delete-hosted-configuration-version     
get-application                          | get-configuration                       
get-configuration-profile                | get-deployment                          
get-deployment-strategy                  | get-environment                         
get-hosted-configuration-version         | list-applications                       
list-configuration-profiles              | list-deployment-strategies              
list-deployments                         | list-environments                       
list-hosted-configuration-versions       | list-tags-for-resource                  
start-deployment                         | stop-deployment                         
tag-resource                             | untag-resource                          
update-application                       | update-configuration-profile            
update-deployment-strategy               | update-environment                      
validate-configuration                   | help```

Has anyone here run into this?
asked a year ago116 views
1 Answer
0

The error seems like the version of AWS CLI used does not support the "ListExtensionAssociations" API from AppConfig.

The AppConfig Extensions and ExtensionAssociations related API were introduced in AWS CLI v1.25.29. Please refer below AWS CLI github changelog:

(-) https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst

I would suggest updating the AWS CLI version on the machine and trying the command again or use CloudShell from AWS console.

(-) Update AWS CLI - https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

AWS
SUPPORT ENGINEER
Aamir_H
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions