nixops-aws icon indicating copy to clipboard operation
nixops-aws copied to clipboard

Deploy without provisioning

Open ip1981 opened this issue 8 years ago • 2 comments

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.

ip1981 avatar Feb 18 '17 08:02 ip1981

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).

Nadrieril avatar Feb 18 '17 13:02 Nadrieril

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.

ip1981 avatar Feb 18 '17 14:02 ip1981