{"task": {"agent_timeout": 3000, "task": "getmoto__moto-6312", "verifier_timeout": 6000, "instruction": "mock_cloudformation with SNS fails to delete stack\nUsing the mock_cloudformation, creating a stack containing a single SNS topic, then deleting the stack fails with an invalid ARN \n\n## Reproduction steps:\n\n```python\ndef test_failure(cloudformation_mock):\n    cloudformation_mock.create_stack(\n        StackName=\"test-stack\",\n        TemplateBody='{\"Resources\": {\"Bucket\": {\"Type\": \"AWS::SNS::Topic\"}}}'\n    )\n    cloudformation_mock.delete_stack(StackName=\"test-stack\")\n```\n\nError is:\n```\nE           botocore.exceptions.ClientError: An error occurred (NotFound) when calling the DeleteStack operation: Topic with arn arn:aws:sns:us-east-1:123456789012:arn:aws:sns:us-east-1:123456789012:test-stack-Bucket-RYQRXXZJ9IRT not found\n```\n\nNote the duplicated and invalid ARN - for some reason moto has duplicated the ARN in this resource. This does not happen for other simple resources (e.g. S3 bucket). I would expect the ARN to match what is generated by the template. \n\n## Version:\n\n- moto 4.1.9\n- boto3 1.26.129\n- botocore 1.29.129\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": 1, "instruction_truncated": false, "category": "debugging", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "swegym", "tags": ["debugging", "swe-bench"]}, "runs": []}