Not loading properties from secrets manager
See original GitHub issueType: Bug
Component: Secrets Manager
Describe the bug Spring boot: 2.4.8 spring-cloud-starter-aws-secrets-manager-config: 2.3.1
I’m using your example and module not loading data from secrets manager. It’s look like the AwsSecretsManagerBootstrapConfiguration isn’t called.
Sample application.properties
aws.secretsmanager.default-context=backend
aws.secretsmanager.prefix=/secret
main class
@SpringBootApplication
public class DemoApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(DemoApplication.class);
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@Bean
ApplicationRunner applicationRunner(@Value("${password}") String password) {
return args -> {
LOGGER.info("`password` loaded from the AWS Secret Manager: {}", password);
};
}
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
AWS Secret Manager Service as application properties with ...
In this article, I will share the hands-on and how to use the AWS Secret Manager service with spring-boot as the config application...
Read more >Importing secrets in Spring Boot application from AWS Secrets ...
Secrets Manager Support loading properties through spring.config.import, introduced in Spring Cloud 2020.0 Read more about integrating your.
Read more >Manage credentials using AWS Secrets Manager
Secrets Manager enables you to replace hard-coded credentials in your code (including passwords) with an API call to retrieve the secret programmatically. This ......
Read more >Secrets manager issues in Spring boot 2.4 #168 - GitHub
yml under src/main/resources; it is not being read on startup. I had to move the configs to application.yml to make it work. I...
Read more >How to load AWS Secrets automatically on application startup ...
You can load AWS secrets from AWS Secrets Manager without writing any code in ... This can be done by adding a single...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi thx for help it’s working 😃
Closing due to lack of feedback