Skip to content

Files

Latest commit

 

History

History

secretsmanagerprovider

Secrets Manager Provider

Status
Stability alpha
Distributions contrib
Issues Open issues Closed issues
Code Owners @driverpt, @atoulme

Summary

This package provides a confmap.Provider implementation for Amazon Secrets Manager (secretsmanager) that allows the Collector the ability to read data stored in AWS Secrets Manager.

How it works

  • Just use the placeholders with the following pattern ${secretsmanager:<arn or name>}
  • Make sure you have the secretsmanager:GetSecretValue in the OTEL Collector Role
  • If your secret is a json string, you can get the value for a json key using the following pattern ${secretsmanager:<arn or name>#json-key}
  • You can also specify a default value by using the following pattern ${secretsmanager:<arn or name>:-<default>}
    • The default value is used when the ARN or name is empty or the json key is not found

Prerequisites: