Eagles-DevOps / MiniTwit

2 stars 2 forks source link

Deployment to Digital Ocean with terraform #142

Closed Hopeberg closed 8 months ago

Hopeberg commented 8 months ago

Co-authored by: ChatGPT

janlishak commented 8 months ago

I'm not sure how this will work. If it is just a reference file, I don't think we should marge it to main.

To make this work we'll have to:

  1. save the state file for terraform somewhere on cloud. (without it it will just create a new doroplets) and also fail coz it need the ip information for reassgiement.
  2. the script will have to be run from the ephemeral folder
  3. it should also destroy the old droplet or make it rebuild
janlishak commented 8 months ago

I'll create a new issue for the remote storage of the state

janlishak commented 8 months ago

145