https://github.com/garysassano/cdk-aws-apprunner-dockerhub-cache
CDK app that deploys the NGINX image from Docker Hub to AWS App Runner using ECR pull-through cache
https://github.com/garysassano/cdk-aws-apprunner-dockerhub-cache
apprunner aws aws-apprunner aws-cdk cdk docker-hub dockerhub dockerhub-cache ecr-pull-through-cache nginx pull-through-cache pullthrough-cache
Last synced: 2 months ago
JSON representation
CDK app that deploys the NGINX image from Docker Hub to AWS App Runner using ECR pull-through cache
- Host: GitHub
- URL: https://github.com/garysassano/cdk-aws-apprunner-dockerhub-cache
- Owner: garysassano
- License: apache-2.0
- Created: 2025-01-19T12:58:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T02:24:17.000Z (over 1 year ago)
- Last Synced: 2025-07-30T20:37:41.291Z (11 months ago)
- Topics: apprunner, aws, aws-apprunner, aws-cdk, cdk, docker-hub, dockerhub, dockerhub-cache, ecr-pull-through-cache, nginx, pull-through-cache, pullthrough-cache
- Language: TypeScript
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdk-aws-apprunner-dockerhub-cache
CDK app that deploys the NGINX image from Docker Hub to AWS App Runner using ECR pull-through cache.
### Related Apps
- [cdk-aws-ecs-dockerhub-cache](https://github.com/garysassano/cdk-aws-ecs-dockerhub-cache) - Uses ECS instead of App Runner.
## Prerequisites
- **_AWS:_**
- Must have authenticated with [Default Credentials](https://docs.aws.amazon.com/cdk/v2/guide/cli.html#cli_auth) in your local environment.
- Must have completed the [CDK bootstrapping](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) for the target AWS environment.
- **_Docker Hub:_**
- Must have set the `DOCKERHUB_USERNAME` and `DOCKERHUB_ACCESS_TOKEN` variables in your local environment.
- **_Node.js + npm:_**
- Must be [installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) in your system.
## Installation
```sh
npx projen install
```
## Deployment
```sh
npx projen deploy
```
## Cleanup
```sh
npx projen destroy
```
## Architecture Diagram
