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

Deployment of web server from web server #6

Merged
merged 4 commits into from
Jun 23, 2022
Merged

Deployment of web server from web server #6

merged 4 commits into from
Jun 23, 2022

Conversation

hartsick
Copy link
Contributor

Opening this for visibility!

#3

@hartsick
Copy link
Contributor Author

Created services using small / non-production plans and bound them to the application:

cf create-service aws-rds small-psql api-psql
cf create-service aws-elasticache-redis redis-dev api-redis
cf bind-service notifications-api api-psql
cf bind-service notifications-api api-redis

Deployed using the new manifest.yml and credentials in .env.deploy.

cf push --vars-file=.env.deploy # will require .env file

@hartsick
Copy link
Contributor Author

current status: application is deployed at route, but tossing errors when connecting to database and AWS logging:

2022-06-22T14:15:52.51-0700 [APP/PROC/WEB/0] OUT {"name": "app", "levelname": "ERROR", "message": "(psycopg2.OperationalError) Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n\n(Background on this error at: https://sqlalche.me/e/14/e3q8)"
cwlogs.push.publisher - WARNING - 80 - Thread-3 - Caught exception: Could not connect to the endpoint URL: "https://logs.us-west-2.amazonaws.com/"

@hartsick
Copy link
Contributor Author

hartsick commented Jun 23, 2022

I think I'm running into egress constraints. More on how cloud.gov manages that here: https://cloud.gov/docs/management/space-egress/

since we're in a new space (10x-notifications) I think we're hitting the default closed-egress security group rules.

If we change the security group to trusted_local_networks_egress then we get access to RDS, but I think we'll run into issues when we start to use non-cloud.gov brokered services like SNS and SES, in addition to the current (broken) cloudwatch logging.

@hartsick hartsick changed the title WIP: local deployment Local deployment of web server Jun 23, 2022
@hartsick hartsick changed the title Local deployment of web server Deployment of web server from web server Jun 23, 2022
@hartsick hartsick marked this pull request as ready for review June 23, 2022 21:00
@hartsick hartsick merged commit c414437 into main Jun 23, 2022
@hartsick hartsick deleted the ch/cf-deploy branch June 23, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant