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?
已提問 1 年前檢視次數 138 次
1 個回答
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
支援工程師
Aamir_H
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南