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

SNS notifier swallows errors related to missing templates used in the config #3528

Closed
emanlodovice opened this issue Sep 15, 2023 · 0 comments · Fixed by #3531 or #3879
Closed

SNS notifier swallows errors related to missing templates used in the config #3528

emanlodovice opened this issue Sep 15, 2023 · 0 comments · Fixed by #3531 or #3879

Comments

@emanlodovice
Copy link
Contributor

What did you do?
When the sns configuration has attributes referencing templates that does not exist Notify will fail but the error says that its because the topic_arn is blank.

Error message:

Invalid parameter: TopicArn Reason: An ARN must have at least 6 elements, not 1

What did you expect to see?
When the sns configuration has attributes referencing templates that does not exist the error should tell me that Notify failed because of this missing template, not something about the topic_arn.

  • Alertmanager configuration file:
    - name: 'test'
      sns_configs:
        - topic_arn: "arn:aws:sns:us-west-2:123456:TestTopic"
          send_resolved: false
          sigv4:
            region: "us-west-2"
          attributes:
            tags: '{{ template "__unknown_template" .Alerts.Firing }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant