Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taimos/awsenv
Read AWS settings from SSM, SecretsManager and CloudFormation to shell environment
https://github.com/taimos/awsenv
Last synced: 8 days ago
JSON representation
Read AWS settings from SSM, SecretsManager and CloudFormation to shell environment
- Host: GitHub
- URL: https://github.com/taimos/awsenv
- Owner: taimos
- License: mit
- Created: 2020-11-17T13:01:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T09:20:31.000Z (over 2 years ago)
- Last Synced: 2024-04-14T05:52:53.218Z (7 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# awsenv
awsenv is a NodeJS command line tool to populate your Bash environment with values from AWS.
## Installation
To install awsenv open a terminal and issue: `npm install -g @taimos/awsenv`
## Usage
Create a file called `.awsenv` with content like:
```
variables:
MY_VPC: cfn:export:VPC-ID
INFRA_VPC: cfn:export:infra-vpc:ExportsOutputRefVPCB9E5F0B4BD23A326
DEV_TABLE: cfn:output:my-app-dev:Database
SERVER_PORT: ssm:/service/prod/server/svc.port
AZURE_AD_TENANT: secret:AzureAD:TenantId
```When running `source awsenv` in your shell, it will populate it with additional environment variables with the specified values.
Supported sources are:
* CloudFormation Exports: `cfn:export:`
* CloudFormation Outputs: `cfn:output::`
* SSM Parameters: `ssm:/path/to/parameter`
* Secretsmanager Secrets: `secret:` or `secret::`Values are resolved using your current AWS credentials
## Contribute
Feel free to open issues, provide code improvements or updates to the documentation.
## License
The script is licensed under the MIT license and provided as-is.