我正在研究
Appconfig
,以便将我的服务从 parameter store
更改为 Appconfig
。
我在 AWS Appconfig 中有 两个应用程序想要删除。
1.
-> 尽管我在此应用程序下没有任何配置,但无法删除
test
环境。 test
下有2个部署,但我删除了。
BadRequestException: Cannot delete environment
arn:aws:appconfig:ap-northeast-2:*****:application/*****/environment/*****
because there are extensions associated with it.
Please remove the extension associations to this environment first.
2.
配置中没有标志,也没有任何部署环境,但我无法删除
kakao
配置。当我尝试删除 kakao
配置时,出现如下错误
BadRequestException: Cannot delete configuration profile
arn:aws:appconfig:ap-northeast-2:*****:application/*****/configurationprofile/*****
because there are extensions associated with it.
Please remove the extension associations to this configuration profile first.
我已经创建了 lambda 函数来测试 appconfig,但我现在删除了每个 lambda 函数和权限策略。我认为没有与这些相关的扩展,但我仍然无法删除这些应用程序。
我可以使用 appconfig 检查每个关联的扩展吗?或者有什么其他方法可以删除吗?
只需使用 aws cli 列出与您的 appconfig 应用程序相关的扩展关联:
aws appconfig list-extension-associations
识别与要删除的 appconfig 应用程序/环境相关的扩展,然后再次使用 aws cli 删除这些扩展关联:
aws appconfig delete-extension-association --extension-association-id ewcd2yo
其中 ewcd2yo 是上面列表中的扩展 ID。
一旦链接到给定 appconfig 应用程序的所有扩展都被完全删除,您就可以成功删除该应用程序或环境。
注意:您的 aws cli 必须配置为使用与部署 appconfig 应用程序的区域相同的区域。