是否可以使用CloudFormation更新通过AWS SDK创建的队列

发布于 2025-02-11 21:27:02 字数 289 浏览 0 评论 0原文

我使用Java中的AWS SDK创建了一个SQS队列。我想将队列迁移到我的yaml云形式文件中。测试已经使用云形式。

将DEV添加到为云形式创建队列的区域列表之后,我会收到一个错误:

已经存在该名称和不同标签的

队列用3个标签创建的云形象。 旧队列有0个标签,但我通过控制台UI手动添加了3个标签,但错误仍然存​​在。

这是先前的云形式模板中不存在的标签的问题,因为没有使用云形式创建队列?

编辑: 我的云形式中已经存在队列,但是if ::等于函数中的dev不包括。

I have created an SQS queue using the aws sdk in java. I want to migrate the queue for dev into my yaml cloudformation file. Test uses cloudformation already.

After adding dev to the list of regions that the queue is created for in cloudformation I get an error:

A queue already exists with that name and different tags

I have created a new queue to test with in dev through cloudformation which gets created with 3 tags.
The old queue had 0 tags but I manually added the 3 tags through the console UI to be identical and yet the error persists.

Is this an issue with the tags not being present in the previous cloudformation template as the queue was not initallly created using cloudformation?

Edit:
The queue exists in my cloudformation already but dev is not included in the if::equals function.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

芯好空 2025-02-18 21:27:02

您必须 import

You have to import your SQS queue into CloudFormation stack.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文