Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to reduce the number of prefixes #2033

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
If your application name is `micronautguide` and it has the following https://micronaut-projects.github.io/micronaut-core/latest/guide/#environments[active environments] `ec2`, `cloud`, and `lambda`. The following configuration prefixes are searched:

* `/config/micronautguide_ec2/`
* `/config/micronautguide_cloud/`
* `/config/micronautguide_lambda/`
* `/config/micronautguide/`
* `/config/application_ec2/`
* `/config/application_cloud/`
* `/config/application_lambda/`
* `/config/application/`

If you set:

[configuration]
----
aws:
distributed-configuration:
search-active-environments:false
----

The following prefixes are searched:

* `/config/micronautguide/`
* `/config/application/`

If you set:

[configuration]
----
aws:
distributed-configuration:
search-common-application:false
----

The following prefixes are searched:

* `/config/micronautguide_ec2/`
* `/config/micronautguide_cloud/`
* `/config/micronautguide_lambda/`
* `/config/micronautguide/`

By setting both:

If you set:

[configuration]
----
aws:
distributed-configuration:
search-active-environments:false
search-common-application:false
----

Only the following prefix is searched:

* `/config/micronautguide/`

IMPORTANT: Reducing the number of prefixes reduces the application's startup.
1 change: 1 addition & 0 deletions src/main/docs/guide/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ alexa:
distributedconfiguration:
title: Distributed Configuration
distributedconfigurationsecretsmanager: AWS Secrets Manager
distributedconfigurationsecretsmanagersearch: Prefixes used for searching secrets
parametersStore: AWS System Manager Parameter Store
repository: Repository
thirdPartyLibraries: Third-party libraries
Loading