localstack-automation

command module
v0.0.0-...-7ae0b82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

LocalStack Automation

What is LocalStack?. LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications. It spins up a testing environment on your local machine that provides the same functionality and APIs as the real AWS cloud environment.

Reference: https://localstack.cloud/

Here I am building an automation tool that does:

  • Deploy localstack locally on your computer
# Deploy localstack using Docker:
make localstack-install

# Check localstack status deployment:
make localstack-status


# Simple validation:

export AWS_ACCESS_KEY_ID="test"
export AWS_SECRET_ACCESS_KEY="test"
export AWS_DEFAULT_REGION="us-east-1"
export AWS_PAGER=""

make localstack-test-awscli
  • Create random resources mainly in AWS (Secrets in AWS Secret Manager)

Requirements

Docker
python v3
golang >1.17

Build the Golang Application

Build the Application with the following command

make go-build

AWS SECRET MANAGER

Create random secrets

Especify the number of secrets you want to create with the awssecretstotal flag. Example:

./bin/localstack-automation -awssecretstotal=1000
List all secrets

List all existing secrets in localstack and the total:

./bin/localstack-automation --awssecretslist

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL