iwantit
@iwantit

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Laravel sailでLocalStackのキューを作成したらエラー(The config profile (localstack) could not be found)がでた

【開発環境】

windows11 pro
Laravel Framework 9
Laravel sail

解決したいこと

題名の通りです。
docker-compose.ymlにLocalStackを記載して起動。
その後キューを作成したらエラー(The config profile (localstack) could not be found)がでました。

【参考】

LocalStack を用いたAWS SQS動作確認方法メモ
https://qiita.com/KWS_0901/items/bb0d3c8319cbb1e64217

docker-compose.yml
version: '3'
services:





    localstack:
      container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
    #  image: localstack/localstack
      image: localstack/localstack-pro
      ports:
        - "127.0.0.1:53:53"                # only required for Pro
        - "127.0.0.1:53:53/udp"            # only required for Pro
        - "127.0.0.1:443:443"              # only required for Pro
        - "127.0.0.1:4510-4530:4510-4530"  # only required for Pro
        - "127.0.0.1:4566:4566"
        - "127.0.0.1:4571:4571"
      environment:
        - SERVICES=${SERVICES- }
        - DEBUG=${DEBUG- }
        - DATA_DIR=${DATA_DIR- }
        - LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
        - LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY- }  # only required for Pro
        - HOST_TMP_FOLDER=${TMPDIR:-/tmp/}localstack
        - DOCKER_HOST=unix:///var/run/docker.sock
      volumes:
      #  - "${TMPDIR:-/tmp}/localstack:/tmp/localstack"
        - "${TMPDIR:-/tmp}/localstack:/var/lib/localstack"
        - "/var/run/docker.sock:/var/run/docker.sock"
      networks:
            - sail

キュー作成 のコマンド

aws sqs create-queue --queue-name test-queue --endpoint-url http://localhost:4566 --profile localstack 
{
    "QueueUrl": "http://localhost:4566/000000000000/test-queue"
}

下記のエラーが出ました。

The config profile (localstack) could not be found

localstackを上手く読み込めてないような気がします。
LocalStackに知見がある方教えて頂けないでしょうか。

0

No Answers yet.

Your answer might help someone💌