Open linzhengen opened 4 years ago
sam init
docker-compose.yml
version: '3.7' services: localstack: image: localstack/localstack environment: - SERVICES=s3 ports: - 4566:4566 volumes: - ./aws:/docker-entrypoint-initaws.d
/aws
#!/bin/bash set -x awslocal s3 mb s3://miniapp-configs awslocal s3 cp /docker-entrypoint-initaws.d/hoge.file s3://hoge-bucket/hoge.file set +x
start-api: docker-compose up -d rm -rf .aws-sam sam local start-api --docker-network hoge_docker-compose-network_default --port 3000 --env-vars hoge-env.json
前提
構築手順
sam init
でサンプルを作成docker-compose.yml
を作成/aws
の配下にshとlocal s3にファイルを配置