You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/templates/aws-windows/README.md
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,21 @@ verified: true
7
7
tags: [vm, windows, aws]
8
8
---
9
9
10
-
# aws-windows
10
+
# Remote Development on AWS EC2 VMs (Windows)
11
11
12
-
## Getting started
12
+
Provision AWS EC2 VMs as [Coder workspaces](https://coder.com/docs/coder-v2/latest) with this example template.
13
13
14
-
To get started, run `coder templates init`. When prompted, select this template.
15
-
Follow the on-screen instructions to proceed.
14
+
<!-- TODO: Add screenshot -->
15
+
16
+
## Prerequisites
17
+
18
+
### Authentication
16
19
17
-
## Authentication
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).
18
21
19
-
This template assumes that coderd is run in an environment that is authenticated
20
-
with AWS. For example, run `aws configure import` to import credentials on the
21
-
system and user running coderd. For other ways to authenticate [consult the
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.
23
25
24
26
## Required permissions / policy
25
27
@@ -74,3 +76,23 @@ instances provisioned by Coder:
74
76
]
75
77
}
76
78
```
79
+
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
+
94
+
## code-server
95
+
96
+
`code-server` is installed via the `startup_script` argument in the `coder_agent`
97
+
resource block. The `coder_app` resource is defined to access `code-server` through
0 commit comments