Manual
Last updated
Was this helpful?
Last updated
Was this helpful?
This page documents the requirements and steps required to install in AWS by manually configuring them.
Manual installation only requires that you meet the for installation within AWS. No additional permissions within AWS are required.
Manual Installation requires you to provide all the information that Earthly would otherwise gather automatically. To do this, run:
Assuming the installation reports the status as Green
, you should be good to go!
name
The name to use to identify the cloud installation. This can be any string.
aws-account-id
The AWS account ID the required BYOC infrastructure was provisioned into.
aws-region
The AWS region the required BYOC infrastructure was provisioned into. Currently, only us-west-2
is supported.
The ID (sg-0123456789abcde01
) of the security group used for new satellites.
The name of the SSH key to be included in new satellites.
The ID (subnet-0123456789abcde01
) of the subnet that satellites will be launched into.
The ARN (arn:aws:iam::012345678901:instance-profile/earthly/satellites/name/profile-name
) of the instance profile satellite instances will use for logging.
The ARN (arn:aws:iam::012345678901:role/earthly/satellites/name/role-name
) of the role Earthly will assume to orchestrate satellites on your behalf.
You will need to create a Subnet (and a VPC, if needed) within the desired AWS account. The Subnet should have internet access, and have a CIDR block or DNS that is resolvable from within your network (VPN or otherwise).
Each satellite has one security group associated with it. Each satellite gets the following ingress rules by default:
TCP
Satellite Subnet
22
22
Allow SSH access from within the ingress subnet. Used for debugging satellite issues.
TCP
Satellite Subnet
8372
8372
Allow Buildkit access.
TCP
Satellite Subnet
9000
9000
Allow Prometheus scraping for monitoring your satellites. Metrics are exported by node_exporter
.
Satellite egress defaults to allowing general, unrestricted outbound traffic to the general internet.
Each satellite is configured to put relevant Buildkit logs in Cloudwatch. Earthly relies on an instance role to provide the relevant permissions.
Start by creating a new IAM policy:
Earthly uses a role within your AWS account to enable orchestration. This means that Earthly will only time-limited, user-revocable access to your cloud account.
Start by creating the policy needed:
This trust policy enables Earthly to use the newly created role to orchestrate satellites on your behalf.
If you can't provision BYOC infrastructure using CloudFormation or Terraform, this should give you enough information to recreate what they do yourself. If you need help, you can .
Any SSH key will do. Follow to create or upload an existing keypair.
Create a new Cloudwatch log group named /earthly/satellites/<cloud-name>
, where <cloud-name>
is the same value you will provide to Earthly via the --name
parameter. The default class is STANDARD
. .
Follow the , associating this new policy with your role.
Follow . Disregard all optional steps. Use the following trust policy: