Skip to content

Commit 351d887

Browse files
committed
fix lint
1 parent b18ad04 commit 351d887

File tree

3 files changed

+22
-92
lines changed

3 files changed

+22
-92
lines changed

demo-script.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

registry/coder/modules/aws-ami-snapshot/README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The module exposes the following parameters to workspace users:
3535
```hcl
3636
module "ami_snapshot" {
3737
source = "registry.coder.com/modules/aws-ami-snapshot"
38-
38+
3939
instance_id = aws_instance.workspace.id
4040
default_ami_id = data.aws_ami.ubuntu.id
4141
template_name = "aws-linux"
@@ -44,7 +44,7 @@ module "ami_snapshot" {
4444
resource "aws_instance" "workspace" {
4545
ami = module.ami_snapshot.ami_id
4646
instance_type = "t3.micro"
47-
47+
4848
# Prevent Terraform from recreating instance when AMI changes
4949
lifecycle {
5050
ignore_changes = [ami]
@@ -57,14 +57,14 @@ resource "aws_instance" "workspace" {
5757
```hcl
5858
module "ami_snapshot" {
5959
source = "registry.coder.com/modules/aws-ami-snapshot"
60-
60+
6161
instance_id = aws_instance.workspace.id
6262
default_ami_id = data.aws_ami.ubuntu.id
6363
template_name = "aws-linux"
6464
enable_dlm_cleanup = true
6565
dlm_role_arn = aws_iam_role.dlm_lifecycle_role.arn
6666
snapshot_retention_count = 5
67-
67+
6868
tags = {
6969
Environment = "development"
7070
Project = "my-project"
@@ -148,25 +148,25 @@ Users need the following IAM permissions for full functionality:
148148

149149
## Variables
150150

151-
| Name | Description | Type | Default | Required |
152-
|------|-------------|------|---------|----------|
153-
| instance_id | The EC2 instance ID to create snapshots from | string | n/a | yes |
154-
| default_ami_id | The default AMI ID to use when not restoring from a snapshot | string | n/a | yes |
155-
| template_name | The name of the Coder template using this module | string | n/a | yes |
156-
| tags | Additional tags to apply to snapshots | map(string) | {} | no |
157-
| enable_dlm_cleanup | Enable Data Lifecycle Manager for automated snapshot cleanup | bool | false | no |
158-
| dlm_role_arn | ARN of the IAM role for DLM | string | "" | no |
159-
| snapshot_retention_count | Number of snapshots to retain when using DLM cleanup | number | 7 | no |
151+
| Name | Description | Type | Default | Required |
152+
| ------------------------ | ------------------------------------------------------------ | ----------- | ------- | -------- |
153+
| instance_id | The EC2 instance ID to create snapshots from | string | n/a | yes |
154+
| default_ami_id | The default AMI ID to use when not restoring from a snapshot | string | n/a | yes |
155+
| template_name | The name of the Coder template using this module | string | n/a | yes |
156+
| tags | Additional tags to apply to snapshots | map(string) | {} | no |
157+
| enable_dlm_cleanup | Enable Data Lifecycle Manager for automated snapshot cleanup | bool | false | no |
158+
| dlm_role_arn | ARN of the IAM role for DLM | string | "" | no |
159+
| snapshot_retention_count | Number of snapshots to retain when using DLM cleanup | number | 7 | no |
160160

161161
## Outputs
162162

163-
| Name | Description |
164-
|------|-------------|
165-
| ami_id | The AMI ID to use for the workspace instance |
166-
| is_using_snapshot | Whether the workspace is using a snapshot AMI |
167-
| snapshot_ami_id | The AMI ID of the created snapshot (if any) |
163+
| Name | Description |
164+
| ------------------- | ----------------------------------------------------- |
165+
| ami_id | The AMI ID to use for the workspace instance |
166+
| is_using_snapshot | Whether the workspace is using a snapshot AMI |
167+
| snapshot_ami_id | The AMI ID of the created snapshot (if any) |
168168
| available_snapshots | List of available snapshot AMI IDs for this workspace |
169-
| snapshot_info | Detailed information about available snapshots |
169+
| snapshot_info | Detailed information about available snapshots |
170170

171171
## Considerations
172172

@@ -179,6 +179,7 @@ Users need the following IAM permissions for full functionality:
179179
## Examples
180180

181181
See the updated AWS templates that use this module:
182+
182183
- `coder/templates/aws-linux`
183184
- `coder/templates/aws-windows`
184-
- `coder/templates/aws-devcontainer`
185+
- `coder/templates/aws-devcontainer`

registry/coder/templates/aws-linux/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This template provisions the following resources:
8686
Coder uses `aws_ec2_instance_state` to start and stop the VM. This template now includes AMI snapshot functionality that allows users to:
8787

8888
- **Create snapshots**: Automatically create AMI snapshots when workspaces are stopped
89-
- **Restore from snapshots**: Select from previous snapshots when starting workspaces
89+
- **Restore from snapshots**: Select from previous snapshots when starting workspaces
9090
- **Custom labels**: Add custom labels to snapshots for easy identification
9191
- **Automatic cleanup**: Optional automated cleanup of old snapshots
9292

0 commit comments

Comments
 (0)