Need same diagnostic logging for both optional and required config data import. #864
Labels
component: parameter-store
Parameter Store integration related issue
component: secrets-manager
Secrets Manager integration related issue
type: enhancement
Smaller enhancement in existing integration
Milestone
Type: Feature
Component:
Is your feature request related to a problem? Please describe.
When using the config import feature for both AWS Secrets Manager and Parameter Store, if the secret or parameter is required (not prefixed with "optional:") and cannot be found, diagnostic messaging is missing. When using "optional:" import, the diagnostic messaging is logged.
First example config:
When using the config import feature for both AWS Secrets Manager and Parameter Store, if the secret or parameter is required (not prefixed with "optional:") and cannot be found, only the following message is printed:
The problem is that the reason for the secret not being found is not included in the output.
Second example config (optional import):
However, if I prefix the config import with "optional:", I get a WARN log message that includes the precise reason why it could not be found (e.g., wrong region, wrong IAM policy, or wrong name). For example:
Describe the solution you'd like
It would be nice in the fail-fast scenario when requiring the import to exist if the failure output would include the same diagnostic information or if this information could at least be logged before the failure output.
Describe alternatives you've considered
Currently, I'm instructing my engineers to put "optional:" on their required config imports and run the application again to get the diagnostic logging. This is an acceptable stop-gap solution, but it's inefficient time-wise to wait for an automated build & deploy process to complete.
Additional context
I'm willing to submit a PR if that will help get this done more quickly.
The text was updated successfully, but these errors were encountered: