question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not loading properties from secrets manager

See original GitHub issue

Type: 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:closed
  • Created 2 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
michalgorkacommented, Jul 13, 2021

Hi thx for help it’s working 😃

0reactions
maciejwalkowiakcommented, Apr 2, 2022

Closing due to lack of feedback

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found