diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 662b6a0..3ab3e0b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -53,7 +53,7 @@ jobs: run: | docker-compose up -d localstack docker-compose run --rm dockerize -wait tcp://localstack:4566 -timeout 60s - docker-compose exec -T localstack /docker-entrypoint-initaws.d/wait_s3_bucket_exists.sh + docker-compose exec -T localstack /etc/localstack/init/wait_s3_bucket_exists.sh - name: terraform --version run: docker-compose run --rm tfmigrate terraform --version - name: testacc diff --git a/docker-compose.yml b/docker-compose.yml index 1657c6b..83b5235 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,16 +23,15 @@ services: - fake-gcs-server localstack: - image: localstack/localstack:1.0.3 + image: localstack/localstack:2.0.2 ports: - "4566:4566" environment: DEBUG: "true" - SERVICES: "s3,ec2,iam" DEFAULT_REGION: "ap-northeast-1" S3_BUCKET: "tfstate-test" volumes: - - "./scripts/localstack:/docker-entrypoint-initaws.d" # initialize scripts on startup + - "./scripts/localstack/init:/etc/localstack/init" # initialize scripts on startup fake-gcs-server: image: fsouza/fake-gcs-server:1.38 diff --git a/scripts/localstack/init.sh b/scripts/localstack/init/ready.d/init.sh similarity index 100% rename from scripts/localstack/init.sh rename to scripts/localstack/init/ready.d/init.sh diff --git a/scripts/localstack/wait_s3_bucket_exists.sh b/scripts/localstack/init/wait_s3_bucket_exists.sh similarity index 100% rename from scripts/localstack/wait_s3_bucket_exists.sh rename to scripts/localstack/init/wait_s3_bucket_exists.sh