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

Support configurable error message from STS #3018

Open
dlvenable opened this issue Jul 12, 2023 · 0 comments
Open

Support configurable error message from STS #3018

dlvenable opened this issue Jul 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dlvenable
Copy link
Member

Is your feature request related to a problem? Please describe.

The error message provided by STS when assuming may not always be the most useful message to present.

Describe the solution you'd like

Allow configuration of the AWS plugin to change the error message provided when assuming a role.

This message can use some formatting to make it dynamic.

e.g.

Unable to assume role ${stsRoleArn} from Amazon STS.

This may yield:

Unable to assume role arn:aws:iam::123456789012:role/MyRole from Amazon STS.

Configuration in data-prepper-config.yaml:

aws:
  sts_errors:
    default_error: Unable to assume role ${stsRoleArn} from Amazon STS.

Additional context

This relates to the ongoing work in the AWS plugin in #2570. And it requires that extension plugins can add new configurations to data-prepper-config.yaml which is part of the extensions work in #2588.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants