Docker-based Workers
The Self-Hosted release archive contains a copy of the Spacelift launcher binary built specifically for your version of Self-Hosted. You can find this at bin/spacelift-launcher
. This binary is also uploaded to the downloads S3 bucket during the Spacelift installation process. For more information on how to find your bucket name see here.
In order to work, the launcher expects to be able to write to the local Docker socket. Unless you're using a Docker-based container scheduler like Kubernetes or ECS, please make sure that Docker is installed and running.
Finally, you can run the launcher binary by setting two environment variables:
SPACELIFT_TOKEN
- the token you’ve received from Spacelift on worker pool creation.
SPACELIFT_POOL_PRIVATE_KEY
- the contents of the private key file you generated, in base64.
Info
You need to encode the entire private key using base-64, making it a single line of text. The simplest approach is to just run cat spacelift.key | base64 -w 0
in your command line. For Mac users, the command is cat spacelift.key | base64 -b 0
.
Congrats! Your launcher should now connect to the Spacelift backend and start handling runs.
The easiest way to deploy workers for self-hosting is to deploy the CloudFormation template found in cloudformation/workerpool.yaml
.
PseudoRandomSuffix
The CloudFormation stack uses a parameter called PseudoRandomSuffix
in order to ensure that certain resources are unique within an AWS account. The value of this parameter does not matter, other than that it is unique per worker pool stack you deploy. You should choose a value that is 6 characters long and made up of letters and numbers, for example ab12cd
.
Create a secret
First, create a new secret in SecretsManager, and add your token and the base64-encoded value of your private key. Use the key SPACELIFT_TOKEN
for your token and SPACELIFT_POOL_PRIVATE_KEY
for the private key. It should look something like this:
Give your secret a name and create it. It doesn't matter what this name is, but you'll need it when deploying the CloudFormation stack.
Get the downloads bucket name
The downloads bucket name is output at the end of the installation process. If you don't have a note of it, you can also get it from the resources of the spacelift-infra-s3 stack in CloudFormation:
AMI
You can use your own custom-built AMI for your workers, or you can use one of the pre-built images we provide. For a list of the correct AMI to use for the region you want to deploy your worker to, see the spacelift-worker-image releases page.
Note: please make sure to choose the x86_64
version of the AMI.
Subnets and Security Group
You will need to have an existing VPC to deploy your pool into, and will need to provide a list of subnet IDs and security groups to match your requirements.
Using a custom IAM role
By default we will create the instance role for the EC2 ASG as part of the worker pool stack, but you can also provide your own custom role via the InstanceRoleName
parameter. This allows you to grant permissions to additional AWS resources that your workers need access to. A great example of this is allowing access to a private ECR in order to use a custom runner image.
At a minimum, your role must fulfil the following requirements:
- It must have a trust relationship that allows role assumption by EC2.
- It needs to have the following managed policies attached:
AutoScalingReadOnlyAccess
.
CloudWatchAgentServerPolicy
.
AmazonSSMManagedInstanceCore
.
Injecting custom commands during instance startup
You have the option to inject custom commands into the EC2 user data. This can be useful if you want to install additional software on your workers, or if you want to run a custom script during instance startup, or just add some additional environment variables.
The script must be a valid shell script and should be put into Secrets Manager. Then you can provide the name of the secret as CustomUserDataSecretName
when deploying the stack.
Example:
In the example above, we used spacelift/userdata
as a secret name so the parameter will look like this:
| [...]
--parameter-overrides \
CustomUserDataSecretName="spacelift/userdata" \
[...]
|
Granting access to a private ECR
To allow your worker role to access a private ECR, you can attach a policy similar to the following to your instance role (replacing <repository-arn>
with the ARN of your ECR repository):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:BatchCheckLayerAvailability"
],
"Resource": "<repository-arn>"
},
{
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken"
],
"Resource": "*"
}
]
}
|
NOTE: repository ARNs are in the format arn:<partition>:ecr:<region>:<account-id>:repository/<repository-name>
.
Proxy Configuration
If you need to use an HTTP proxy for internet access, you can provide the proxy configuration using the following CloudFormation parameters:
HttpProxyConfig
.
HttpsProxyConfig
.
NoProxyConfig
.
For example, you could use the following command to deploy a worker with a proxy configuration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | aws cloudformation deploy --no-cli-pager \
--stack-name spacelift-default-worker-pool \
--template-file "cloudformation/workerpool.yaml" \
--region "eu-west-1" \
--parameter-overrides \
PseudoRandomSuffix="ab12cd" \
BinariesBucket="012345678901-spacelift-infra-spacelift-downloads" \
SecretName="spacelift/default-worker-pool-credentials" \
SecurityGroups="sg-0d1e157a19ba2106f" \
Subnets="subnet-44ca1b771ca7bcc1a,subnet-6b61ec08772f47ba2" \
ImageId="ami-0ead0234bef4f51b0" \
HttpProxyConfig="http://proxy.example.com:1234" \
HttpsProxyConfig="https://proxy.example.com:4321" \
NoProxyConfig="some.domain,another.domain" \
--capabilities "CAPABILITY_NAMED_IAM"
|
Using custom CA certificates
If you use a custom certificate authority to issue TLS certs for components that Spacelift will communicate with, for example your VCS system, you need to provide your custom CA certificates to the worker. You do this by creating a secret in SecretsManager containing a base64 encoded JSON string.
The format of the JSON object is as follows:
| {"caCertificates": ["<base64-encoded-cert-1>", "<base64-encoded-cert-2>", "<base64-encoded-cert-N>"]}
|
For example, if you had a file called ca-certs.json containing the following content:
| {
"caCertificates": [
"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZzVENDQTVtZ0F3SUJBZ0lVREQvNFZCZkx4NUsvdEFZK1Nja0gwNVRKOGk4d0RRWUpLb1pJaHZjTkFRRUwKQlFBd2FERUxNQWtHQTFVRUJoTUNSMEl4RVRBUEJnTlZCQWdNQ0ZOamIzUnNZVzVrTVJBd0RnWURWUVFIREFkSApiR0Z6WjI5M01Sa3dGd1lEVlFRS0RCQkJaR0Z0SUVNZ1VtOXZkQ0JEUVNBeE1Sa3dGd1lEVlFRRERCQkJaR0Z0CklFTWdVbTl2ZENCRFFTQXhNQjRYRFRJek1ETXhNekV4TXpZeE1Wb1hEVEkxTVRJek1URXhNell4TVZvd2FERUwKTUFrR0ExVUVCaE1DUjBJeEVUQVBCZ05WQkFnTUNGTmpiM1JzWVc1a01SQXdEZ1lEVlFRSERBZEhiR0Z6WjI5MwpNUmt3RndZRFZRUUtEQkJCWkdGdElFTWdVbTl2ZENCRFFTQXhNUmt3RndZRFZRUUREQkJCWkdGdElFTWdVbTl2CmRDQkRRU0F4TUlJQ0lqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FnOEFNSUlDQ2dLQ0FnRUF4anYvK3NJblhpU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VNXlNRVYyTjJkWFYwNXBObFpqVWpoVU5sQlVMM0ppUVVkcWJsQnRWbTF2V2pSeVl6ZERaRzlUT0ZwUldrcG9Da3M0UlV4Qk1UY3JjRzVOVkdkdk4zZDRaa0ZTY1V3cmNDdHRjV2QwVlhoU1ltbFhhWFJsZGpoR01taFZWa0l2VTNkUU9HaHdZMGR5WkdoVVJVNDNkR1FLY0ZOWE1YbHJVR1ZIU2taTFUwSnZOVkZJWVc1eGNWQkdRM3B4ZEVabGIwdzVSR2haZURVdmVFVTJSbkJMVFV4bk0zWldZMFp6U0hVMloyeFRPR2xOVmdvMFNIWmlNbVpZZFdoWWVFeFVRa05pUkRFck5XeE1VQzlpU0ZodloxRkxiWEF5U0RaUGFqQmxObGRDYlZFd2VIRkhiM1UwU1d3MlltRjJjMXBEZURKMkNrRkVWM1pzZFdVMWFsaGtUblUxZUZCYVpITk9WazVCYkhWQmJtVUtMUzB0TFMxRlRrUWdRMFZTVkVsR1NVTkJWRVV0TFMwdExRbz0iCiAgXQp9Cg==
|
You would then create a secret in SecretsManager, and deploy the worker pool using the following command (replacing <ca-cert-secret-name>
with the name of your secret):
1
2
3
4
5
6
7
8
9
10
11
12
13 | aws cloudformation deploy --no-cli-pager \
--stack-name spacelift-default-worker-pool \
--template-file "cloudformation/workerpool.yaml" \
--region "eu-west-1" \
--parameter-overrides \
PseudoRandomSuffix="ab12cd" \
BinariesBucket="012345678901-spacelift-infra-spacelift-downloads" \
SecretName="spacelift/default-worker-pool-credentials" \
SecurityGroups="sg-0d1e157a19ba2106f" \
Subnets="subnet-44ca1b771ca7bcc1a,subnet-6b61ec08772f47ba2" \
ImageId="ami-0ead0234bef4f51b0" \
AdditionalRootCAsSecretName="<ca-cert-secret-name>" \
--capabilities "CAPABILITY_NAMED_IAM"
|
Running the launcher as root
By default, when the EC2 instance starts up, it creates a user called spacelift
with a UID of 1983. This user is then used to run the launcher process.
If for some reason this causes problems, you can run the launcher as root
by setting the RunLauncherAsSpaceliftUser
CloudFormation parameter to false
.
Tip
Versions v0.0.7 or older of Self-Hosted always ran the launcher as root. In newer versions this behavior has changed to default to the spacelift
user.
PowerOffOnError
By default, the startup script for the EC2 instances automatically terminates the instance if the launcher exits. This is to allow the instance to be automatically removed from the autoscale group and a new one added in the case of errors.
Sometimes it can be useful to disable this behavior, for example if instances are repeatedly crashing on startup, preventing you from being able to connect to investigate any issues before they terminate.
To do this, set the PowerOffOnError
setting to false when deploying your CloudFormation stack.
Info
Please note, if you update this setting on an existing CloudFormation stack, you will need to restart all the workers in the pool before the updated setting takes effect.
Deploying the Template
To deploy your worker pool stack, you can use the following command:
1
2
3
4
5
6
7
8
9
10
11
12 | aws cloudformation deploy --no-cli-pager \
--stack-name spacelift-default-worker-pool \
--template-file "cloudformation/workerpool.yaml" \
--region "<region>" \
--parameter-overrides \
PseudoRandomSuffix="ab12cd" \
BinariesBucket="<binaries-bucket>" \
SecretName="<secret-name>" \
SecurityGroups="<security-groups>" \
Subnets="<subnets>" \
ImageId="<ami-id>" \
--capabilities "CAPABILITY_NAMED_IAM"
|
For example, to deploy to eu-west-1
you might use something like this:
1
2
3
4
5
6
7
8
9
10
11
12 | aws cloudformation deploy --no-cli-pager \
--stack-name spacelift-default-worker-pool \
--template-file "cloudformation/workerpool.yaml" \
--region "eu-west-1" \
--parameter-overrides \
PseudoRandomSuffix="ab12cd" \
BinariesBucket="012345678901-spacelift-infra-spacelift-downloads" \
SecretName="spacelift/default-worker-pool-credentials" \
SecurityGroups="sg-0d1e157a19ba2106f" \
Subnets="subnet-44ca1b771ca7bcc1a,subnet-6b61ec08772f47ba2" \
ImageId="ami-0ead0234bef4f51b0" \
--capabilities "CAPABILITY_NAMED_IAM"
|
To use a custom instance role, you might use something like this:
1
2
3
4
5
6
7
8
9
10
11
12
13 | aws cloudformation deploy --no-cli-pager \
--stack-name spacelift-default-worker-pool \
--template-file "cloudformation/workerpool.yaml" \
--region "eu-west-1" \
--parameter-overrides \
PseudoRandomSuffix="ab12cd" \
BinariesBucket="012345678901-spacelift-infra-spacelift-downloads" \
SecretName="spacelift/default-worker-pool-credentials" \
SecurityGroups="sg-0d1e157a19ba2106f" \
Subnets="subnet-44ca1b771ca7bcc1a,subnet-6b61ec08772f47ba2" \
ImageId="ami-0ead0234bef4f51b0" \
InstanceRoleName="default-worker-role" \
--capabilities "CAPABILITY_NAMED_IAM"
|
Our public AWS, Azure and GCP Terraform modules are not currently compatible with self-hosting.