We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1caa3 commit d8cf437Copy full SHA for d8cf437
examples/templates/fly-docker-image/main.tf
@@ -15,6 +15,7 @@ provider "fly" {
15
useinternaltunnel = true
16
internaltunnelorg = var.fly_org
17
internaltunnelregion = data.coder_parameter.region.value
18
+ fly_api_token = var.fly_api_token == "" ? null : var.fly_api_token
19
}
20
21
provider "coder" {
@@ -85,6 +86,17 @@ resource "fly_machine" "workspace" {
85
86
]
87
88
89
+variable "fly_api_token" {
90
+ type = string
91
+ description = <<-EOF
92
+The Fly.io API token to use for deploying the workspace. You can generate one by running:
93
+
94
+$ flyctl auth token
95
+EOF
96
+ sensitive = true
97
+ default = ""
98
+}
99
100
variable "fly_org" {
101
type = string
102
default = "coder-409"
0 commit comments