Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DescribeBroker API error: unsupported format for Terraform #8632

Open
pareshchalke opened this issue Feb 27, 2025 · 0 comments
Open

DescribeBroker API error: unsupported format for Terraform #8632

pareshchalke opened this issue Feb 27, 2025 · 0 comments

Comments

@pareshchalke
Copy link

When using Terraform with Moto Server to create an RabbitMQ broker, the JSON response for DescribeBroker contains CreationTimestamp in a format that Terraform does not accept. This causes Terraform to fail deserialization with the following error:

│ Error: reading MQ Broker (37680b): operation error mq: DescribeBroker, https response error StatusCode: 200, RequestID: Kcit2L20LGYDSFFaKQDqP2HkrSw4t5bNSitq3VkPLsERZZZwspwZ, deserialization failed, failed to decode response body with invalid JSON, expected __timestampIso8601 to be of type string, got json.Number instead

Moto returns CreationTimestamp in a format that Terraform does not accept, causing a deserialization failure.

I believe it requires similar changes - 216e586#diff-6b97e164285716cccad08ed0a1c43a0ba6becf99589b1881d91b9a4a2c47b907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant