Skip to content

cbirkhold/dev-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-aws

Tools and scripts for AWS development.

Scripts

aws-cloudformation-install-deploy-key-from-secrets-manager.sh

Retrieves a Base64-encoded SSH deploy key from AWS Secrets Manager and installs it for use with Git operations on EC2 instances.

Usage:

# Optional
apt-get update

# Set required environment variables
SECRET_REGION=us-west-1 \
SECRET_ID=my-secret-id \
SECRET_KEY=DEPLOY_KEY_BASE64 \
  ./scripts/aws-cloudformation-install-deploy-key-from-secrets-manager.sh host.com

Development

Prerequisites

macOS:

pip install pre-commit
brew install shellcheck bats-core

Linux (Debian/Ubuntu):

pip install pre-commit
apt-get install shellcheck bats

Setup

pre-commit install
./tests/setup-bats.sh

Linting

pre-commit
pre-commit run --all-files

Testing

bats tests

About

Tools and scripts for AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages