Maintained by: Douglas Cabrera
Where to get help: GitHub Issues
Dockerfile linksamplify-json is a containerized tool that fetches metadata from AWS Amplify apps and branches, transforms it into structured JSON, and serves it via a lightweight HTTP server. It is designed to be used in observability dashboards, CI pipelines, or other automation processes that require visibility into Amplify deployments.
docker volume create -d local amplify-json-data && \
docker run --name amplify-json --restart unless-stopped -p 80:80 --env-file .env -v ~/.aws:/root/.aws:ro -v amplify-json-data:/app/public:rw cabreraevil/amplify-json:latest
services:
amplify-json:
image: cabreraevil/amplify-json:latest
container_name: amplify-json
restart: unless-stopped
ports:
- 80:80
env_file:
- .env
volumes:
- ~/.aws:/root/.aws:ro
- amplify-json-data:/app/public:rw
volumes:
amplify-json-data:
driver: local
name: amplify-json-data
| Variable | Description | Default |
|---|---|---|
AWS_REGION | AWS region where Amplify apps are deployed | ca-central-1 |
AWS_PROFILE | AWS CLI profile to use | default |
PORT | Port to expose via serve | 80 |
INTERVAL | Interval (in minutes) to regenerate JSON | 5 |
CRON_EXPRESSION | Optional custom cron expression (overrides INTERVAL) | (unset) |
DEBUG | Enables verbose entrypoint logging if set to true | false |
Once the container is running, you can access:
http://localhost:80/input.json – raw amplify list outputhttp://localhost:80/output.json – formatted domain and branch metadataWhere to file issues: https://github.com/cabrera-evil/amplify-json/issues
Supported architectures:
linux/amd64, linux/arm64
Published image details: Docker Hub: cabreraevil/amplify-json
Source of this description:
docs repo’s amplify-json/ directory
This image uses a shell-based entrypoint to:
amplify-generate && amplify-process once at startup*/5 * * * * root amplify-generate && amplify-process >> /var/log/amplify-json.log
You can customize the cron job via:
INTERVAL=10 → */10 * * * *CRON_EXPRESSION="0 * * * *" → runs at the top of every hourLogs are stored in
/var/log/amplify-json.log. Cron jobs are written to/etc/cron.d/amplify.
To view the logs:
docker exec -it amplify-json tail -f /var/log/amplify-json.log
This project is released under the MIT License.
Content type
Image
Digest
sha256:ccbd212b1…
Size
175 MB
Last updated
over 1 year ago
docker pull cabreraevil/amplify-json