Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find the documentation for cloud deployment #37

Open
syedmbzaidi opened this issue Nov 13, 2020 · 5 comments
Open

Unable to find the documentation for cloud deployment #37

syedmbzaidi opened this issue Nov 13, 2020 · 5 comments

Comments

@syedmbzaidi
Copy link

Hi Team,
I am implementing the same project for the City of Erfurt. Currently, I am trying to deploy the backend (fargate cluster). But I am unable to do so. I want to ask how you deploy the code on the aws cloud?

I didn't find any ecs-cli or aws-cli commands in the repository. Please guide me in the right direction. I am trying to deploy the app on aws directly. I have a postgres db ready. But I am unable to find the documentation for the deployment over the cloud.

Regards
Bilal Zaidi

@ff6347
Copy link
Collaborator

ff6347 commented Nov 17, 2020

Hi,

We are using terraform to deploy to fargate and to provision the S3. See terraform/ecs-harvester in this repo.
But actually having GitHub action would be enough in this case.

@syedmbzaidi
Copy link
Author

Hi,
Thanks for the reply. I have deployed the backend using terraform scripts. But the ECS task is not able to connect with databases. I have Terraform 0.13.5 . If I create a new task it ends and the following error can be found in cloudwatch.

image

@ff6347
Copy link
Collaborator

ff6347 commented Nov 23, 2020

Does the DB exist?
Are they in the same VPC?
Is the DB ingress restricted?
Can you run the harvester.py from your local machine?

AWS config is kind of black magic. Maybe running it from GitHub actions is easier.

@syedmbzaidi
Copy link
Author

Yes, It was the issue because the database was not created by terraform. while debugging I was able to create the DB.
Thank you so much for the response.

@ff6347
Copy link
Collaborator

ff6347 commented Nov 26, 2020

@syedmbzaidi You are welcome. The documentation is not that great. Shame on me. The schema for the DB can be found in here which might be a little outdated but still should work. We added some extra columns there are pretty berlin specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants