We use cookies to make your experience better.
Learn how to deploy a workspace provider to an EC2 instance.
This article walks you through the process of deploying a workspace provider to an EC2 instance.
The use of EC2 providers is currently an alpha feature. Before using, please enable this feature under Feature Preview:
You must have an AWS access key ID and secret access key.
We recommend having the AWS CLI installed and configured as well.
To manage EC2 providers for your Coder deployment, create an IAM policy and
attach it to the IAM identity (e.g., role) that will be managing your resources
(be sure to update or remove aws:RequestedRegion
accordingly):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": "ec2:*",
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": "us-east-1"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeAccountAttributes",
"ec2:DescribeSubnets",
"ec2:CreateSecurityGroup",
"ec2:DescribeSecurityGroups",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:DeleteSecurityGroup",
"ec2:ImportKeyPair",
"ec2:DescribeKeyPairs",
"ec2:CreateVolume",
"ec2:DescribeVolumes",
"ec2:AttachVolume",
"ec2:DeleteVolume",
"ec2:RunInstances",
"ec2:DescribeInstances",
"ec2:DescribeInstanceStatus",
"ec2:TerminateInstances",
"ec2:DescribeInstanceTypes",
"ec2:CreateTags"
],
"Resource": "*"
}
]
}
Log into Coder as a site manager, and go to Manage > Workspace providers.
In the top-right next to Create Kubernetes Provider, click on the down arrow and select Create Amazon EC2 Provider.
Provide a name to identify the provider.
Provide the requested configuration details to connect Coder to your AWS account:
Provide the following networking options if desired:
Specify the Amazon Machine Image (AMI) configuration you want to be used when launching workspaces:
Privileged mode may pose a security risk to your organization. We recommend enabling this feature only if users need full access to the host (e.g., kernel driver development or running Docker-in-Docker).
Toggle external connect on if you would like to enable SSH connections to your workspaces via the Coder CLI.
Click Create provider to proceed.
See an opportunity to improve our docs? Make an edit.