An open API service indexing awesome lists of open source software.

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

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

![Architecture Diagram](./src/assets/arch-diagram.svg)