목록localstack (3)
without haste but without rest
요약 LocalStack 0.13.0 버전부터는 /tmp/localstack 디렉토리를 마운트 해도 데이터들이 정상적으로 마운트 되지 않는다. 0.12.n 버전을 사용하면 정상적으로 볼륨이 마운트 된다. 원인 0.13.0 커뮤니티 버전에서는 persistent volume 서비스를 제외했다. 0.12.20 버전을 사용하면 위 문제를 해결할 수 있다. localstack on k8s 템플릿 https://github.com/jinyes-kim/localstack-on-k8s/blob/master/localstack-on-k8s.yml GitHub - jinyes-kim/localstack-on-k8s Contribute to jinyes-kim/localstack-on-k8s development by c..
boto3 docs 어떻게 접근해야할까? boto3 클래스의 클라이언트 메서드는 액세스 키를 이용해서 접근한다. 그런데 로컬스택은 엔드 포인트를 지정해주어야 한다. 다행히 boto3 를라이언트는 엔드 포인트를 지정하는 파라미터가 존재한다. 버킷 리스트 확인 import boto3 # Retrieve the list of existing buckets s3 = boto3.client('s3', endpoint_url="http://localhost:4566") response = s3.list_buckets() # Output the bucket names print('Existing buckets:') for bucket in response['Buckets']: print(f' {bucket["Name..

공식 도큐먼트 깃허브 onexlab LocalStack aws 서비스를 로컬 환경에서 테스팅할 수 있게 해주는 에뮬레이터다. aws cli, localstack을 설치하고 작동을 확인하는 것 까지를 목표로 한다. Requirements MacOS Python 3.6 up to 3.9 pip Docker compose Install # Install aws cli brew install awscli # Install localstack python3 -m pip install localstack docker compose version: "3.8" services: localstack: container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}" image: ..