- Notifications
You must be signed in to change notification settings - Fork22
feat: Remove agent_script data source to simplify resources#8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletionsMakefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletionsdocs/data-sources/agent_script.md
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
9 changes: 5 additions & 4 deletionsdocs/data-sources/workspace.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
35 changes: 10 additions & 25 deletionsdocs/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
28 changes: 17 additions & 11 deletionsdocs/resources/agent.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletionsdocs/resources/agent_instance.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "coder_agent_instance Resource - terraform-provider-coder" | ||
subcategory: "" | ||
description: |- | ||
Use this resource to associate an instance ID with an agent for zero-trust authentication. This association is done automatically for "googlecomputeinstance", "awsinstance", "azurermlinuxvirtualmachine", and "azurermwindowsvirtual_machine" resources. | ||
--- | ||
# coder_agent_instance (Resource) | ||
Use this resource to associate an instance ID with an agent for zero-trust authentication. This association is done automatically for "google_compute_instance", "aws_instance", "azurerm_linux_virtual_machine", and "azurerm_windows_virtual_machine" resources. | ||
## Example Usage | ||
```terraform | ||
resource "coder_agent" "dev" { | ||
os = "linux" | ||
arch = "amd64" | ||
auth = "google-instance-identity" | ||
} | ||
resource "google_compute_instance" "dev" { | ||
zone = "us-central1-a" | ||
} | ||
resource "coder_agent_instance" "dev" { | ||
agent_id = coder_agent.dev.id | ||
instance_id = google_compute_instance.dev.instance_id | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
### Required | ||
- `agent_id` (String) The "id" property of a "coder_agent" resource to associate with. | ||
- `instance_id` (String) The instance identifier of a provisioned resource. | ||
### Optional | ||
- `id` (String) The ID of this resource. | ||
12 changes: 0 additions & 12 deletionsexamples/data-sources/coder_agent_script/data-source.tf
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
33 changes: 9 additions & 24 deletionsexamples/provider/provider.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletionsexamples/resources/coder_agent/resource.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletionsexamples/resources/coder_agent_instance/resource.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
resource "coder_agent" "dev" { | ||
os = "linux" | ||
arch = "amd64" | ||
auth = "google-instance-identity" | ||
} | ||
resource "google_compute_instance" "dev" { | ||
zone = "us-central1-a" | ||
} | ||
resource "coder_agent_instance" "dev" { | ||
agent_id = coder_agent.dev.id | ||
instance_id = google_compute_instance.dev.instance_id | ||
} |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.