MIT License

项目介绍

1Password/terraform-provider-onepassword 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 MIT License 许可证,目前获得 406 个 Star、81 次 Fork。

仓库全名
1Password/terraform-provider-onepassword
开源许可证
MIT License
Star 数
406
Fork 数
81
未关闭 Issue
34

README 摘要

1Password Terraform provider Use the 1Password Terraform provider to access and manage items in your 1Password vaults. ✨ Get started See the examples directory for detailed examples. For more details check out 1Password Terraform Provider documentation. This project is licensed under MIT. Use of the 1Password APIs and services accessed through these tools is governed by the 1Password API Terms of Service. 🛠️…

完整内容见 GitHub 原始 README 或本页 。

常见问题

terraform-provider-onepassword 用什么语言开发?

主要使用 Go 编写,采用 MIT License 许可证,目前有 406 个 Star。

terraform-provider-onepassword 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 terraform-provider-onepassword 的源码?

可以直接克隆仓库:git clone https://github.com/1Password/terraform-provider-onepassword.git,默认分支为 main;安装与运行步骤见仓库 README。

terraform-provider-onepassword 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 34 个未关闭 Issue;Star 数为 406,可作为社区活跃度的参考。

关于

Use the 1Password Terraform Provider to reference, create, or update items in your 1Password Vaults.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
582
价值分
267
活跃状态
活跃

README

1Password Terraform provider

Use the 1Password Terraform provider to access and manage items in your 1Password vaults.

Get started

✨ Get started

This project is licensed under MIT. Use of the 1Password APIs and services accessed through these tools is governed by the 1Password API Terms of Service.

terraform {
  required_providers {
   
      source = "1Password/onepassword"
    }
  }
}

provider "onepassword" {
  service_account_token = "<1Password service account token>"
}

variable "vault_id" {}

# Using section_map for direct field access by label
resource "onepassword_item" "demo_credentials" {
  vault = var.vault_id

  title    = "Demo API Credentials"
  category = "login"

  section_map = {
    "api_credentials" = {
      field_map = {
        "api_key" = {
          type  = "CONCEALED"
          value = "your-api-key"
        }
        "api_secret" = {
          type = "CONCEALED"
          password_recipe = {
            length  = 32
            symbols = false
          }
        }
      }
    }
  }
}

# Access fields directly by label
output "api_key" {
  value     = onepassword_item.demo_credentials.section_map["api_credentials"].field_map["api_key"].value
  sensitive = true
}

# Using section (list) for block syntax
resource "onepassword_item" "demo_login" {
  vault = var.vault_id

  title    = "Demo Terraform Login"
  category = "password"

  username = "demo-username"

  password_recipe {
    length  = 40
    symbols = false
  }
}

🛠️ Contributing

For the contribution guidelines, see CONTRIBUTING.md.

Still not sure where or how to begin? We’re happy to help! You can join the Developer Slack workspace, and ask us any questions there.

💙 Community & Support

🔐 Security

1Password requests you practice responsible disclosure if you discover a vulnerability.

Please file requests by sending an email to [email protected].

评论

暂无评论