An open API service indexing awesome lists of open source software.

https://github.com/hungran/aws-secret-parse

initContainer for generating config file
https://github.com/hungran/aws-secret-parse

aws devops secrets-manager

Last synced: 23 days ago
JSON representation

initContainer for generating config file

Awesome Lists containing this project

README

          

# aws-secret-parse

- Retrive secret and generating application's config file for every format from AWS Secret Manager
- Image using chainguard go image with 0 CVE
![image](https://user-images.githubusercontent.com/26101787/230541559-f9566bcd-4256-4364-95de-09851bd89f0b.png)

## Usage & Prerequisite in k8s environment
- Configmap, AWS Secret Manager tag key `env` and value as input, output is your file format you need (.env, appsetting.json)
- Can be use as initContainer...

## Eg

Input

```json
{
"abc": "{{ .PerfectSecret }}",
"xyz": "{{ .FooBar }}"
}
```

Output

```json
{
"abc": "PerfectSecret_VALUE",
"xyz": ""
}
```
## Idea
If you looking this with helm you will need
- [ ] Helm chart for creating configmap from template file
- [ ] InitContainer for creating outfile under `emptyDir`

If you interesting with this!

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/hungran91)