Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Financial-Times/aws-cli-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aws-cli-scripts

A collection of Bash functions to ease interaction with aws command line tool.

Usage

Directory sh/lib contains functions that can be called by first sourcing the file and then calling the function.

Example source + function call command.

source sh/lib/ec2.sh ; deleteVPC vpc-9fcb94fb

Development environment

Dev environments are built on Docker images. Dockerfiles are stored under directory dockerfiles//Dockerfile

Building image

The following example command builds Docker image for DynamoDB local development.

sudo docker build -f dockerfiles/dynamodb/Dockerfile -t dynamodb:dev .

Running image

The following example command starts dynamodb:dev image, mounts current working directory under /mnt/workspace and enables port forwarding from port 8000 to 8000

sudo docker run -v $PWD:/mnt/repo -p 8000:8000 -it dynamodb:dev

Connecting to local DynamoDB

aws dynamodb list-tables --endpoint-url http://localhost:8000 #Inside the container
aws dynamodb list-tables --endpoint-url http://172.17.0.1:8000 #From outside of container

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors