The discussion revolves around automating Discourse on AWS. joelradon shares a Terraform script that sets up an instance, installs Docker, and configures Discourse, but notes the challenge of AWS assigning new IPs on each deployment, making DNS-dependent services unavailable. Falco explains that AWS offers floating IPs and load balancers, but these are outside the scope of support, and emphasizes that DNS must be set during rebuild if using Let’s Encrypt. michaeld suggests using Terraform to dynamically create a DNS entry for the new IP, addressing the core issue.
I wrote a terraform script to boot up an instance, install docker, give public ip, and create app.yml file to automate installation of discourse.
Everything works, but discourse is dependent on having a DNS name so it is unavailable when spun up, as AWS gives you a new IP everytime you create and destroy.
What kind of automation is everyone else on aws using?
Will everything work as expected if DNS is pointed after build is run?
AWS have floating IPs and you can put a load balancer in front too. There are many ways to approach this, but way beyond the scope of the support we provide here in Meta.
Depends. If you want to issue an Let’s Encrypt certificate, that happens on rebuild, so the DNS must be set during it.