Skip to content

Commit deabf17

Browse files
committed
add aws-windows
1 parent e563e15 commit deabf17

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

examples/templates/aws-linux/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ verified: true
77
tags: [vm, linux, aws, persistent-vm]
88
---
99

10-
# Remote Development on AWS EC2 VMs
10+
# Remote Development on AWS EC2 VMs (Linux)
1111

1212
Provision AWS EC2 VMs as [Coder workspaces](https://coder.com/docs/coder-v2/latest) with this example template.
1313

examples/templates/aws-windows/README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ verified: true
77
tags: [vm, windows, aws]
88
---
99

10-
# aws-windows
10+
# Remote Development on AWS EC2 VMs (Windows)
1111

12-
## Getting started
12+
Provision AWS EC2 VMs as [Coder workspaces](https://coder.com/docs/coder-v2/latest) with this example template.
1313

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
1619

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).
1821

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
22-
Terraform docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration).
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.
2325

2426
## Required permissions / policy
2527

@@ -74,3 +76,23 @@ instances provisioned by Coder:
7476
]
7577
}
7678
```
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
98+
the dashboard UI over `localhost:13337`.

0 commit comments

Comments
 (0)