简体   繁体   中英

Could not create aws sqs queue for multiple environment?

The yml file in aws sqs has Resources: MyQueue: Type: AWS::SQS::Queue Properties: QueueName:"mytestqueue"

how to handle the MYQueue when creating a stage environment, it is throwing Queue already exists!

how to add MyQueue to stage in template.yml file.

It is better to ignore naming the resources manually, you can't perform updates on such resources. Let the service create the name which can help you with updates.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-name

"If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM