Skip to content

tfstateremote should support reading token from terraform cli #1219

Description

@DanielHabenichtWork

When already logged in via terraform login the token is (in general) saved at ~/.terraform.d/credentials.tfrc.json. It would be great if in addition to reading the token from TFE_TOKEN the token could also be read from this location. (JQ path: .credentials["app.terraform.io"].token)

If you think that is a good idea I am happy to provide a PR for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions