From 41e305d8331a5f6086707cddbe5ee52c3d72bc90 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 30 Mar 2022 12:53:23 +0000 Subject: [PATCH 1/2] feat(examples): add AWS MacOS --- examples/aws-macos/README.md | 7 +++ examples/aws-macos/main.tf | 105 +++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 examples/aws-macos/README.md create mode 100644 examples/aws-macos/main.tf diff --git a/examples/aws-macos/README.md b/examples/aws-macos/README.md new file mode 100644 index 0000000000000..bf76e27e08607 --- /dev/null +++ b/examples/aws-macos/README.md @@ -0,0 +1,7 @@ +--- +name: Develop in MacOS on AWS (WIP) +description: Get started with MacOS development on AWS (EC2) with a dedicated Mac Mini. +tags: [cloud, aws] +--- + +WIP: The Coder agent does not connect by default to the MacOS instance. diff --git a/examples/aws-macos/main.tf b/examples/aws-macos/main.tf new file mode 100644 index 0000000000000..bd2cbf951b69c --- /dev/null +++ b/examples/aws-macos/main.tf @@ -0,0 +1,105 @@ +terraform { + required_providers { + coder = { + source = "coder/coder" + } + } +} + +variable "access_key" { + description = < Date: Wed, 30 Mar 2022 15:59:31 +0000 Subject: [PATCH 2/2] add host ID variable --- examples/aws-macos/main.tf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/aws-macos/main.tf b/examples/aws-macos/main.tf index bd2cbf951b69c..7da08ed9fb1bf 100644 --- a/examples/aws-macos/main.tf +++ b/examples/aws-macos/main.tf @@ -13,6 +13,12 @@ EOT sensitive = true } +variable "dedicated_host_id" { + description = "Dedicated host ID: (leave blank to create a new one)" + default = false + type = string +} + variable "secret_key" { description = <