NixOS / nixops-aws

GNU Lesser General Public License v3.0
53 stars 37 forks source link

Deploy without provisioning #68

Open ip1981 opened 7 years ago

ip1981 commented 7 years ago

After ec2 infrastructure is created, I want just to deploy stuff. Unfortunately nixops bails out if not provided with aws credentials. By the way, Hetzner backend supports this workflow.

Nixops has some options for gradual deploy: create, create and copy, create, copy and switch. I'd like to have an option to skip the create step.

Nadrieril commented 7 years ago

If I understand your problem correctly, you could use the none backend, which lets you deploy via ssh to any pre-existing machine (see https://nixos.org/nixops/manual/#opt-deployment.targetEnv).

ip1981 commented 7 years ago

Yes, I could. But ec2 backend is good in provisioning :) I just want to be sure my Jenkins won't change any resources. Automatic provisioning is good until it gets some information that is not known beforehand, like IP addresses. IOW if it were fully declarative.

I'm thinking about a small (hopefully) patch to nixops, or use other tools for provisioning.