Hi

I have a golang REST api server. I cross-compile the monolithic golang 
binary with GOOS=linux GOARCH=amd64 from my macbook (developer machine) and 
then scp the binary to a ec2 vm. I have written a systemd service file to 
manually bring down the service before the scp and bring up after the scp.

I use RDS for database and run any migrations that are needed, after the 
scp and before the service restart.

Now I have reached a stage where I want the deployments to be continuous 
and preferably from my CI system.  I have already written a Dockerfile 
which is used in the CI system for testing. I do not want to use kubernetes 
or anything complex at the moment because I am going to have only one 
instance of my monolithic binary and also a free tier vm is sufficient for 
my current needs.

I am looking for tools / processes / best practices that people are 
following to automate deploy of golang binaries on EC2. I prefer to use a 
cloud-vendor-neutral-tool (such as terraform or saltstack) instead of 
cloudformation. Can you share your golang production deploy experience ?

Thanks a lot.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to