diff --git a/provision/production/PRODUCTION_PROVISION_README.md b/provision/production/PRODUCTION_PROVISION_README.md index e57976e..10ad5cf 100644 --- a/provision/production/PRODUCTION_PROVISION_README.md +++ b/provision/production/PRODUCTION_PROVISION_README.md @@ -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 diff --git a/provision/production/config-instance.yaml.sample b/provision/production/config-instance.yaml.sample index e36e721..f8f3c5b 100644 --- a/provision/production/config-instance.yaml.sample +++ b/provision/production/config-instance.yaml.sample @@ -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: diff --git a/provision/production/config-stack.yaml.sample b/provision/production/config-stack.yaml.sample index 2098f0d..8a6974d 100644 --- a/provision/production/config-stack.yaml.sample +++ b/provision/production/config-stack.yaml.sample @@ -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