2 years ago
#45431
zyq
Masstransit with Amazon SQS not working in EKS
I have configured the bus like this
services.AddMassTransit(x =>
{
x.UsingAmazonSqs((context, cfg) =>
{
cfg.Durable = true;
cfg.AutoDelete = false;
cfg.Host("us-east-2", h =>
{
});
});
});
I've not specified credential to allow AWS SDK to resolve the credential automatically. https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/creds-assign.html
The setup works fine on my local machine with a AWS session profile. However when I deploy the code in EKS, I got the following message:
Health check masstransit-bus with status Degraded completed after 1.9351ms with message 'Degraded Endpoints: {{THE BUS ENDPOINT}}'
There's no other error or warning, but the bus is not working. I have verified IRSA (https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) has been configured correctly for the pod.
Am I missing something? What can I do to track down the underlying issue?
amazon-sqs
amazon-sns
amazon-eks
masstransit
0 Answers
Your Answer