0
votes

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.

1

1 Answers

0
votes

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."