https://github.com/udhavpawar/aws_sync
https://github.com/udhavpawar/aws_sync
automation aws aws-secrets-manager aws-sync credentials pip pip3 pypi pypi-package python python3 replicate secrets
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/udhavpawar/aws_sync
- Owner: UdhavPawar
- License: mit
- Created: 2020-08-20T05:28:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T03:57:31.000Z (almost 6 years ago)
- Last Synced: 2024-12-22T09:29:49.281Z (over 1 year ago)
- Topics: automation, aws, aws-secrets-manager, aws-sync, credentials, pip, pip3, pypi, pypi-package, python, python3, replicate, secrets
- Language: Python
- Homepage: https://pypi.org/project/aws-sync
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [aws-sync](https://github.com/UdhavPawar/aws-sync) [](https://twitter.com/intent/tweet?text=Sync%20AWS%20secrets%20easily%20between%20multiple%20accounts&url=https://github.com/UdhavPawar/aws-sync&hashtags=aws,secrets,github,github-profile,github-email,python3,pypi)
Key Features •
Installation •
How To Use •
Contribute •
Package
## Key Features
- Python package which easily syncs specifc or all secrets between multiple AWS accounts.
- In destination account, missing secrets are automatically created and existing secrets are updated in-place.
- Supports filtering to replicate specific pattern matching secrets. Defaults to replicate all secrets.
- Supports using custom KMS Encryption key. Defaults to default AWS secrets manager encryption key.
## Installation
Install package use the package manager [pip](https://pypi.org/project/aws-sync/).
> python2

```bash
pip install aws-sync
```
OR
```bash
python -m pip install aws-sync
```
> python3

```bash
pip3 install aws-sync
```
OR
```bash
python3 -m pip install aws-sync
```
> Facing an issue? Check the [Issues](https://github.com/UdhavPawar/aws-sync/issues) section or open a new issue.
## How To Use

> python2 run.py
```python
```
> python3 run.py
```python3
```
> Facing an issue? Check the [Issues](https://github.com/UdhavPawar/aws-sync/issues) section or open a new issue.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change/fix.
## Package
How the code works:
```
- Let's say accountA is source account and accountB is destination account.
- If no environment filter is provided by user, then defaults to replicate all secrets.
- If no Encryption KMS Key ARN is provided by user, then defaults to use the AWS secrets manager default encryption key.
- For secret in accountA, if it is a new secret, then creates a new secret in accountB.
- If secret exists in accountB, then update it's value.
```
> package PyPi project: [aws-sync](https://pypi.org/project/aws-sync/)
## License
[MIT](https://github.com/UdhavPawar/aws-sync/blob/master/LICENSE)