Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions README.es-ES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# ECS fargate stacks by CDK with fastAPI

[![MIT License](https://badgen.now.sh/badge/License/MIT/blue)](https://github.com/sintaro/CDK_ECSFargate_FastAPI/blob/master/LICENSE.md)
[![sintaro](https://badgen.now.sh/badge/by/sintaro/purple)](https://github.com/sintaro)


## Requisitos


## Arquitectura

- **Python**,
- Pipenv básico de **Python** `./Pipfile`
- Backend con FastAPI `./backend`
- **Docker** utilizando `./docker/api/Dockerfile` y docker-compose en `./docker/docker-compose`
- **Infraestructura como Código** utilizando [AWS Cloud Development Kit][cdk] en `./stacks`
- Scripts de Pipenv

``` text:Pipfile
start
docker_build
docker_run
docker_compose_up

# ECR deploy image scripts
tagged_image
push_to_ecr
deploy_image_ecr
deploy_ecr_stack
deploy_ecs_stack

# CDK scripts
cdk
cdk_ls
cdk_diff
cdk_doctor
```

## Uso

Especifique estos valores en el entorno, como en un archivo .env

`$ touch > .env`

```sh title=.envに記載
REPOSITORY_IMAGE=XXXXX-ecr-image
ECR_STACK_NAME=xxxxxxxxxxx
ECS_STACK_NAME=xxxxxxxxxxx
PORT=XXXX
ACCOUNT=XXXXXX
AWS_REGION=XXXXXX
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXXX
AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXX
ROLE_ARN=arn:aws:iam::XXXXXXXXXXXXXXXXXXX:role/ecsTaskExecutionRole
ECR_REGISOTRY=XXXXXXXXXX.dkr.ecr.XXXXXXXXXXXXXXXX.amazonaws.com/XXXXXXXXXXXXXXXX:latest
```