KitaPlatzZentrale / kpz

1 stars 0 forks source link

AppRunner #69

Closed Darjusch closed 4 months ago

Darjusch commented 1 year ago

Modular CDK AppRunner setup for API - DEV and PROD We can now deploy using: ( you need to install cdk before ) cdk deploy

Depending on which ENV variables are set it will deploy on DEV / PROD using the specified ECR Repository. Next steps are: Link KPZ domain and CI / CD - Build docker image when pushed on main / dev and push to ECR.

We now use node 18 instead of 14.

5h3rr1ll commented 1 year ago

@Darjusch I think this PR needs more testing and more actions since we also should make sure that the frontend is pointing from now on to the new backend running on App Runner since we should shut down the EC2, which is running the current backend. I would like to look into that tomorrow (Sunday).

Can you merge the dev locally into your branch end to resolve there the conflicts, so we don't need to resolve the on dev? 😊

Darjusch commented 1 year ago

The frontend is pointing to a URL that is now setup with AppRunner right?, we could setup APPRUNNER to automatically start with that URL if you want to look into it go ahead :D I can imagine that its a bit difficult thought and if it is to much overhead we can also do this step manually. Before we shut down the EC2 instances we have to migrate the frontend to the S3 Bucket, but lets open another Issue for that! @5h3rr1ll