Skip to content

Commit e563e15

Browse files
committed
add aws docs
1 parent 2132a6b commit e563e15

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

examples/templates/aws-linux/README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ verified: true
77
tags: [vm, linux, aws, persistent-vm]
88
---
99

10-
# aws-linux
10+
# Remote Development on AWS EC2 VMs
1111

12-
To get started, run `coder templates init`. When prompted, select this template.
13-
Follow the on-screen instructions to proceed.
12+
Provision AWS EC2 VMs as [Coder workspaces](https://coder.com/docs/coder-v2/latest) with this example template.
13+
14+
<!-- TODO: Add screenshot -->
15+
16+
## Prerequisites
1417

15-
## Authentication
18+
### Authentication
1619

17-
This template assumes that coderd is run in an environment that is authenticated
18-
with AWS. For example, run `aws configure import` to import credentials on the
19-
system and user running coderd. For other ways to authenticate [consult the
20-
Terraform docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration).
20+
By default, this template authenticates to AWS with using the provider's default [authentication methods](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration).
21+
22+
The simplest way (without making changes to the template) is via environment variables (e.g. `AWS_ACCESS_KEY_ID`) or a [credentials file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-format). If you are running Coder on a VM, this file must be in `/home/coder/aws/credentials`.
23+
24+
To use another [authentication method](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication), edit the template.
2125

2226
## Required permissions / policy
2327

@@ -73,6 +77,20 @@ instances provisioned by Coder:
7377
}
7478
```
7579

80+
## Architecture
81+
82+
> **Note**
83+
> This template is designed to be a starting point! Edit the Terraform to extend the template to support your use case.
84+
85+
This template provisions the following resources:
86+
87+
- AWS Instance
88+
89+
Coder uses `aws_ec2_instance_state` to start and stop the VM. This example template is fully persistent, meaning the full filesystem is preserved when the workspace restarts. See this [community example](https://github.com/bpmct/coder-templates/tree/main/aws-linux-ephemeral) of an ephemeral AWS instance.
90+
91+
To get started, run `coder templates init`. When prompted, select this template.
92+
Follow the on-screen instructions to proceed.
93+
7694
## code-server
7795

7896
`code-server` is installed via the `startup_script` argument in the `coder_agent`

0 commit comments

Comments
 (0)