Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

inject file fromcoder_agent resource #3055

Closed as not planned
Closed as not planned
Labels
apiArea: HTTP API
@ammario

Description

@ammario

As a template administrator, I want to give my users a cloud service account for particular workspaces. The cleanest way I can do this is by using a cloud service account key resource likethis.

I could inject via environment variables, but very long environment variables are an anti-pattern. I could also inject via thestartup_script, but that is bug prone since I would need to consider escaping.

My ideal UX is something like this:

resource"google_service_account_key""mykey" {service_account_id=google_service_account.myaccount.namekeepers={    rotation_time= time_rotating.mykey_rotation.rotation_rfc3339  }}resource"coder_agent""dev" {# ...files=[    {       name="~/.gcp_creds.json       contents = google_service_account_key.mykey.private_key       mode ="0600"    },  ]  env = {     GOOGLE_APPLICATION_CREDENTIALS ="~/.gcp_creds.json"  }}

Related#2989#3047

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp