Skip to content

module: amazon-q mkdir /home/coder failed. #470

@anasfanani

Description

@anasfanani

I try this awesome module

https://registry.coder.com/modules/coder/amazon-q

With this configuration:

module "amazon-q" {
  source          = "registry.coder.com/coder/amazon-q/coder"
  version         = "2.1.0"
  agent_id        = coder_agent.main.id
  workdir         = "/home/${local.username}/${local.code_server_folder_name}"
  auth_tarball    = var.amazon_q_auth_tarball
  ai_prompt       = data.coder_parameter.ai_prompt.value
  trust_all_tools = true

  # Task reporting configuration
  report_tasks = true

  # Enable CLI app alongside web app
  cli_app              = true
  web_app_display_name = "Amazon Q"
  cli_app_display_name = "Q CLI"
}

Error:

mkdir -p /home/coder failed.

Then I see in modules

module "agentapi" {
source = "registry.coder.com/coder/agentapi/coder"
version = "1.2.0"
agent_id = var.agent_id
web_app_slug = local.app_slug

It should add folder

module "agentapi" {
  source  = "registry.coder.com/coder/agentapi/coder"
  version = "1.2.0"
  folder               = var.workdir

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions