You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to make a Micronaut application that uses Configuration Discovery via the AWS Parameter Store. I wish to test this application with Localstack but can't get the SSM endpoint override to work for configuration discovery.
I have followed the steps from the Micronaut AWS Parameter Store guide. Still, I keep getting this error message from AWS as the ssm endpoint override has not been applied during configuration discovery:
ERROR io.micronaut.runtime.Micronaut - Error starting Micronaut server: Error reading distributed configuration from AWS Parameter Store: The security token included in the request is invalid. (Service: Ssm, Status Code: 400, Request ID: df21ba18-7712-4e82-9e4c-0cafbcff28a6)
I have the following properties added to my application.properties file to try to override the ssm endpoint:
I have also set the following environment variable setup to get the configuration discovery process to search in param store. Without these values the configuration discovery process does not attempt to check param store:
As far as I can tell the AWSServiceConfigurationProperties beans are only initiated after configuration discovery which might be contributing to my issue.
If anyone can let me know if I am doing something wrong or have missed something it would be appreciated.
I've uploaded a copy of the repo I am testing with here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been trying to make a Micronaut application that uses Configuration Discovery via the AWS Parameter Store. I wish to test this application with Localstack but can't get the SSM endpoint override to work for configuration discovery.
I have followed the steps from the Micronaut AWS Parameter Store guide. Still, I keep getting this error message from AWS as the ssm endpoint override has not been applied during configuration discovery:
I have the following properties added to my application.properties file to try to override the ssm endpoint:
I have also set the following environment variable setup to get the configuration discovery process to search in param store. Without these values the configuration discovery process does not attempt to check param store:
As far as I can tell the AWSServiceConfigurationProperties beans are only initiated after configuration discovery which might be contributing to my issue.
If anyone can let me know if I am doing something wrong or have missed something it would be appreciated.
I've uploaded a copy of the repo I am testing with here
Beta Was this translation helpful? Give feedback.
All reactions