# -weight: 500;">docker-compose.yml
services: ministack: image: ministackorg/ministack:latest ports: - "4566:4566"
# -weight: 500;">docker-compose.yml
services: ministack: image: ministackorg/ministack:latest ports: - "4566:4566"
# -weight: 500;">docker-compose.yml
services: ministack: image: ministackorg/ministack:latest ports: - "4566:4566"
-weight: 500;">docker compose up -d
-weight: 500;">docker compose up -d
-weight: 500;">docker compose up -d
import boto3 endpoint = "http://localhost:4566"
ddb = boto3.client("dynamodb", endpoint_url=endpoint, aws_access_key_id="test", aws_secret_access_key="test", region_name="us-east-1") ddb.create_table( TableName="my-table", KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}], AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}], BillingMode="PAY_PER_REQUEST",
)
import boto3 endpoint = "http://localhost:4566"
ddb = boto3.client("dynamodb", endpoint_url=endpoint, aws_access_key_id="test", aws_secret_access_key="test", region_name="us-east-1") ddb.create_table( TableName="my-table", KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}], AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}], BillingMode="PAY_PER_REQUEST",
)
import boto3 endpoint = "http://localhost:4566"
ddb = boto3.client("dynamodb", endpoint_url=endpoint, aws_access_key_id="test", aws_secret_access_key="test", region_name="us-east-1") ddb.create_table( TableName="my-table", KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}], AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}], BillingMode="PAY_PER_REQUEST",
)
# One config change — everything else stays the same
endpoint_url = os.environ.get("ENDPOINT_URL") # None for real AWS def make_client(-weight: 500;">service): kwargs = {} if endpoint_url: kwargs["endpoint_url"] = endpoint_url kwargs["aws_access_key_id"] = "test" kwargs["aws_secret_access_key"] = "test" return boto3.client(-weight: 500;">service, region_name="us-east-1", **kwargs)
# One config change — everything else stays the same
endpoint_url = os.environ.get("ENDPOINT_URL") # None for real AWS def make_client(-weight: 500;">service): kwargs = {} if endpoint_url: kwargs["endpoint_url"] = endpoint_url kwargs["aws_access_key_id"] = "test" kwargs["aws_secret_access_key"] = "test" return boto3.client(-weight: 500;">service, region_name="us-east-1", **kwargs)
# One config change — everything else stays the same
endpoint_url = os.environ.get("ENDPOINT_URL") # None for real AWS def make_client(-weight: 500;">service): kwargs = {} if endpoint_url: kwargs["endpoint_url"] = endpoint_url kwargs["aws_access_key_id"] = "test" kwargs["aws_secret_access_key"] = "test" return boto3.client(-weight: 500;">service, region_name="us-east-1", **kwargs)
# Real AWS
pytest tests/ # MiniStack
ENDPOINT_URL=http://localhost:4566 pytest tests/
# Real AWS
pytest tests/ # MiniStack
ENDPOINT_URL=http://localhost:4566 pytest tests/
# Real AWS
pytest tests/ # MiniStack
ENDPOINT_URL=http://localhost:4566 pytest tests/
# GitHub Actions example
jobs: integration-tests: runs-on: ubuntu-latest services: ministack: image: ministackorg/ministack:latest ports: - 4566:4566 steps: - uses: actions/checkout@v4 - run: -weight: 500;">pip -weight: 500;">install boto3 pytest - run: python scripts/provision.py # Create tables, params, buckets - run: ENDPOINT_URL=http://localhost:4566 pytest tests/ -v
# GitHub Actions example
jobs: integration-tests: runs-on: ubuntu-latest services: ministack: image: ministackorg/ministack:latest ports: - 4566:4566 steps: - uses: actions/checkout@v4 - run: -weight: 500;">pip -weight: 500;">install boto3 pytest - run: python scripts/provision.py # Create tables, params, buckets - run: ENDPOINT_URL=http://localhost:4566 pytest tests/ -v
# GitHub Actions example
jobs: integration-tests: runs-on: ubuntu-latest services: ministack: image: ministackorg/ministack:latest ports: - 4566:4566 steps: - uses: actions/checkout@v4 - run: -weight: 500;">pip -weight: 500;">install boto3 pytest - run: python scripts/provision.py # Create tables, params, buckets - run: ENDPOINT_URL=http://localhost:4566 pytest tests/ -v