我无法删除 AWS appconfig 配置和环境

问题描述 投票:0回答:2

我正在研究

Appconfig
,以便将我的服务从
parameter store
更改为
Appconfig

我在 AWS Appconfig 中有 两个应用程序想要删除。

1.

  • 应用程序:测试应用程序
  • 配置(0 EA):无
  • 环境(1 个 EA):测试(有 2 个已删除配置的部署)

-> 尽管我在此应用程序下没有任何配置,但无法删除

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.

  • 应用程序:开发配置
  • 配置(1 EA):kakao(无标志配置)
  • 环境(0 EA):无

配置中没有标志,也没有任何部署环境,但我无法删除

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 检查每个关联的扩展吗?或者有什么其他方法可以删除吗?

amazon-web-services aws-app-config
2个回答
0
投票

只需使用 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 应用程序的区域相同的区域。


0
投票

只需转到 Appconfig -> 扩展,选择您在创建应用程序时使用的扩展。就我而言,我声明 eventbridge 如下所示 enter image description here

在其中选择关联资源并删除该资源。 现在删除后您可以不受任何限制地删除该应用程序

© www.soinside.com 2019 - 2024. All rights reserved.