I'm using spring-cloud-aws-messaging
to be able to easily confirm SNS
topic subscription and receive notification through an HTTPS endpoint in my service.
@NotificationSubscriptionMapping
public void confirmSubscription(final NotificationStatus status) {}
For that specific process, aws
credentials shouldn't be necessary, the flow is validated through a certificate validation between SNS request to my service and a call to the provided URL matching the certificate's signature, but still when SNS tries to confirm the subscription I get:
com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY))
Is there a way to go around it?
Here we can find an example of someone that could do it using the .NET aws-sdk
directly:
So it's probably possible to do it in java with the SDK directly but I still wonder if with spring-cloud-aws
it's possible.
I appreciate a lot any help, Cheers!