Skip to content

New plugin: Terraform #140

Closed
Closed

Description

@anthonyangel

Platform or tool

Terraform

Relevant links

https://developer.hashicorp.com/terraform/cli/commands/login

https://developer.hashicorp.com/terraform/cli/config/config-file#credentials-1

Goal or desired behavior

Authenticate Terraform against a remote backend (e.g. Terraform Cloud or Scalr)

Contribution

  • I'd be up for building the plugin myself.

Additional information

Running terraform login generates a plaintext JSON credential file. Alternatively you can specify login credentials via env vars

Activity

  1. AndyTitu commented on Jan 13, 2023

    @AndyTitu
    Contributor

    Thank you for the suggestion @anthonyangel , this looks like a really cool future plugin! I have assigned you to this issue, as I've noticed you'd be up for building this yourself. However, do let us know if you need any help during the process!

  2. anthonyangel commented on Jan 13, 2023

    @anthonyangel
    Author

    Thanks Andy, I'm struggling to get these plugins to play nicely on my Chromebook (The op CLI and Linux app install and run just fine, but it looks like ChromeOS doesn't make the fingerprint reader available to Linux) so I may well not get round to this any time soon

  3. kennedy commented on Feb 22, 2023

    @kennedy

    I was browsing through the documentation for CLI configuration. Interally in terraform, there is a credential helper system. I believe we can take advantage of that, and incorporate 1pass to it.

    https://developer.hashicorp.com/terraform/cli/config/config-file#credentials-helpers
    https://developer.hashicorp.com/terraform/internals/credentials-helpers

    There is also environment variables we can use as well, but only supported in Terraform v1.2.0 and later.

    https://developer.hashicorp.com/terraform/cli/config/config-file#environment-variable-credentials.

    For example, my use-case use the Terraform Cloud token: TF_TOKEN_app_terraform_io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

plugin-requestRequest for a new shell plugin

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions