-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CZID-8457] Replace localstack with moto (#48)
* Replace localstack with moto
- Loading branch information
1 parent
a4994ad
commit e725efb
Showing
10 changed files
with
122 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,5 +303,5 @@ static | |
# VS Code | ||
.vscode | ||
|
||
# LocalStack | ||
.volume | ||
# Moto | ||
.moto_recording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
.PHONY: gha-setup | ||
gha-setup: | ||
-@docker swarm init 2>/dev/null | true | ||
touch .moto_recording | ||
docker compose up -d | ||
|
||
.PHONY: init | ||
init: gha-setup | ||
$(MAKE) seed | ||
$(MAKE) -C entities local-init | ||
$(MAKE) -C workflows local-init | ||
|
||
.PHONY: seed | ||
seed: | ||
./bin/seed_moto.sh | ||
|
||
.PHONY: clean | ||
clean: | ||
$(MAKE) -C entities local-clean | ||
$(MAKE) -C workflows local-clean | ||
docker compose down | ||
rm .moto_recording |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Script to initialize moto server; runs inside the motoserver container | ||
|
||
# Launch moto server | ||
moto_server --host 0.0.0.0 --port $MOTO_PORT & | ||
|
||
# Initialize data once server is ready | ||
sleep 1 && curl -X POST "http://localhost:${MOTO_PORT}/moto-api/recorder/replay-recording" | ||
|
||
# Go back to moto server | ||
wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Script to seed moto server; runs outside the motoserver container for development | ||
|
||
aws="aws --endpoint-url=http://localhost:4000" | ||
export AWS_ACCESS_KEY_ID=test | ||
export AWS_SECRET_ACCESS_KEY=test | ||
export AWS_REGION=us-west-2 | ||
$aws s3 mb s3://local-bucket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters