Skip to content

Commit

Permalink
Merge pull request #102 from geneontology/kill_swarm
Browse files Browse the repository at this point in the history
add dns_zone_id and related doc
  • Loading branch information
sierra-moxon authored Sep 27, 2024
2 parents 4d421dc + d7c395a commit ab742e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion provision/production/PRODUCTION_PROVISION_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ terraform -chdir=aws output # shows public ip of aws instance
## Configuring and deploying software (go-fastapi) _stack_:
These commands continue to be run in the dockerized development environment.

* Make DNS names for go-fastapi point to the public IP address. If using cloudflare, put the ip in cloudflare DNS record. Otherwise put the ip in the AWS Route 53 DNS record.
```bash
* replace "REPLACE_ME" values in config-instance.yaml for dns_record_name and dns_zone_id,
dns_zone_id should be "Z04640331A23NHVPCC784" and dns_record_name is the FQDN plus the REPLACE_ME_WITH_TERRAFORM_BACKEND, eg. api-production-2024-08-21.geneontology.org
* Location of SSH keys may need to be replaced after copying config-stack.yaml.sample
* s3 credentials are placed in a file using the format described above
* s3 uri if SSL is enabled. Location of SSL certs/key
Expand Down
4 changes: 2 additions & 2 deletions provision/production/config-instance.yaml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ instance:

# Set the fqdn if you want the record to be created and make sure you have the right zone id. (See AWS console)
# The created record will be of type A and will be populated with the public ip address of the aws instance
dns_record_name: ""
dns_zone_id: ""
dns_record_name: "REPLACE_ME"
dns_zone_id: "REPLACE_ME" # see documentation for the zone id

disk_size: 200
open_ports:
Expand Down
3 changes: 2 additions & 1 deletion provision/production/config-stack.yaml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ stack:
QS_ClientEventBlockCountSeconds: 100
QS_ClientEventBlockExcludeIP: "9.9.9.9"

fastapi_host: REPLACE_ME # USE FQDN aes-test-go-fastapi.geneontology.org
fastapi_host: api.geneontology.org
fastapi_host_alias: REPLACE_ME # USE FQDN aes-test-go-fastapi.geneontology.org
fastapi_tag: 0.2.0

REDIRECT_HTTP: 1
Expand Down

0 comments on commit ab742e4

Please sign in to comment.