Skip to content

Commit

Permalink
fix: mark the access key as optional
Browse files Browse the repository at this point in the history
The direct connection mode has been deprecated. The workload agent does not require the access key to connect to the orchestrator.

Signed-off-by: francesco-racciatti <[email protected]>
  • Loading branch information
francesco-racciatti committed Sep 11, 2023
1 parent 000b507 commit dba4c22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sysdig/data_source_sysdig_fargate_workload_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func dataSourceSysdigFargateWorkloadAgent() *schema.Resource {
"sysdig_access_key": {
Type: schema.TypeString,
Description: "the Sysdig access key",
Required: true,
Optional: true,
},
"workload_agent_image": {
Type: schema.TypeString,
Expand Down
4 changes: 1 addition & 3 deletions website/docs/d/fargate_workload_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ data "sysdig_fargate_workload_agent" "instrumented_containers" {
image_auth_secret = ""
workload_agent_image = "quay.io/sysdig/workload-agent:latest"
sysdig_access_key = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
orchestrator_host = module.fargate-orchestrator-agent.orchestrator_host
orchestrator_port = module.fargate-orchestrator-agent.orchestrator_port
}
Expand All @@ -32,7 +31,6 @@ data "sysdig_fargate_workload_agent" "instrumented_containers" {
## Argument Reference

* `container_definitions` - (Required) The input Fargate container definitions to instrument with the Sysdig workload agent.
* `sysdig_access_key` - (Required) The Sysdig Access Key (Agent token).
* `orchestrator_host` - (Required) The orchestrator host to connect to.
* `orchestrator_port` - (Required) The orchestrator port to connect to.
* `workload_agent_image` - (Required) The Sysdig workload agent image.
Expand Down

0 comments on commit dba4c22

Please sign in to comment.