An open API service indexing awesome lists of open source software.

https://github.com/jordipuigbou/step-functions-test

Project to play with AWS golang sdk for testing
https://github.com/jordipuigbou/step-functions-test

aws aws-dynamodb aws-iam aws-lambda aws-s3 aws-step-functions bdd-tests golang golium testing

Last synced: 5 months ago
JSON representation

Project to play with AWS golang sdk for testing

Awesome Lists containing this project

README

          

# AWS Step Functions Test Project

Project to interact with AWS services and test them using [golium](https://github.com/TelefonicaTC2Tech/golium#golium).
Services tested are:
- Step functions
- Lambda
- S3
- IAM
- Dynamo DB

## Requirements

* [Docker](https://www.docker.com/community-edition)
* [Golang](https://golang.org)
* [AWS CLI](https://aws.amazon.com/es/cli/)
* [SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)

## Quick start
- Install all [requirements](#requirements)
- Install go dependencies
```bash
make install
make download-tools
```
- Launch aws local stack
```bash
docker-compose up
```
- Build aws stack with SAM template
```bash
make build
```
- Zip deployment
```bash
make zip-deployment
```
- Launch test
```bash
make test
```

## Other commands
- Validate SAM template
```bash
make validate-template
```
- Lint go code
```bash
make lint
```

- Clean zip Deployment
```bash
make clean-zip-deployment
```