Skip to content

rubrikinc/terraform-provider-rubrik

Repository files navigation

Rubrik Provider for Terraform

🔨 Installation

Requirements: Terraform has been successfully installed.

  1. Download the latest compiled binary from GitHub releases.

    macOS Intel: terraform-provider-rubrik-darwin-amd64
    macOS Apple: terraform-provider-rubrik-darwin-arm64
    Linux: terraform-provider-rubrik-linux-amd64
    Windows: terraform-provider-rubrik-windows-amd64.exe
    
  2. Move the Rubrik provider into the correct Terraform plugin directory

    For Terraform 0.12 and earlier:

    macOS Intel: ~/.terraform.d/plugins/darwin_amd64
    macOS Apple: ~/.terraform.d/plugins/darwin_arm64
    Linux: ~/.terraform.d/plugins/linux_amd64
    Windows: %APPDATA%\terraform.d\plugins\windows_amd64
    

    Note: You may need to create the plugins directory.

    For Terraform 0.13 and later:

    macOS Intel: cp terraform-provider-rubrik-darwin-amd64 ~/.terraform.d/plugins/rubrikinc/rubrik/rubrik/<release_version>/darwin_amd64/terraform-provider-rubrik
    macOS Apple: cp terraform-provider-rubrik-darwin-arm64 ~/.terraform.d/plugins/rubrikinc/rubrik/rubrik/<release_version>/darwin_arm64/terraform-provider-rubrik
    Linux: cp terraform-provider-rubrik-linux-amd64 ~/.terraform.d/plugins/rubrikinc/rubrik/rubrik/<release_version>/linux_amd64/terraform-provider-rubrik
    Windows: copy terraform-provider-rubrik-windows-amd64.exe %APPDATA%\terraform.d\plugins\rubrikinc\rubrik\rubrik\<release_version>\windows_amd64\terraform-provider-rubrik.exe
    

    Note: You may need to create the containing directory structure.

    Note: Replace <release_version> with the release number of the provider as found in GitHub releases. Example: 2.2.0

    Note: terraform-provider-rubrik and terraform-provider-rubrik.exe are file names not directories.

  3. For MacOS and Linux only, make the terraform-provider-rubrik file executable.

    macOS chmod 755 ~/.terraform.d/plugins/rubrikinc/rubrik/rubrik/<release_version>/darwin_amd64/terraform-provider-rubrik
    Linux: chmod 755 ~/.terraform.d/plugins/rubrikinc/rubrik/rubrik/<release_version>/linux_amd64/terraform-provider-rubrik
    
  4. Run terraform init in the directory that contains your Terraform configuration file (main.tf)

📘 Documentation

Here are some resources to get you started! If you find any challenges from this project are not properly documented or are unclear, please raise an issue and let us know! This is a fun, safe environment - don't worry if you're a GitHub newbie! ❤️

🔍 Example

provider "rubrik" {}

resource "rubrik_configure_timezone" "LA-Timezone" {
  timezone = "America/Los_Angeles"
}

💪 How You Can Help

We glady welcome contributions from the community. From updating the documentation to adding more functions for Terraform, all ideas are welcome. Thank you in advance for all of your issues, pull requests, and comments! ⭐

📌 License

👉 About Rubrik Build

We encourage all contributors to become members. We aim to grow an active, healthy community of contributors, reviewers, and code owners. Learn more in our Welcome to the Rubrik Build Community page.