Skip to content

Commit c4a9afb

Browse files
committed
Add init script for S3 buckets
1 parent eba87d7 commit c4a9afb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@ services:
5252
localstack:
5353
image: localstack/localstack:latest
5454
volumes:
55+
- ./localstack/init-s3.sh:/etc/localstack/init/ready.d/init-s3.sh
5556
- localstack:/var/lib/localstack
5657
ports:
5758
- 4566:4566
5859
environment:
5960
SERVICES: s3,dynamodb
61+
AWS_ACCESS_KEY_ID: root
62+
AWS_SECRET_ACCESS_KEY: tembatemba
63+
AWS_DEFAULT_REGION: us-east-1
6064

6165
rapidpro:
6266
image: nyaruka/rapidpro:stable

localstack/init-s3.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
awslocal s3 mb s3://temba-default
4+
awslocal s3 mb s3://temba-attachments
5+
awslocal s3 mb s3://temba-sessions
6+
awslocal s3 mb s3://temba-logs
7+
awslocal s3 mb s3://temba-archives

0 commit comments

Comments
 (0)