Skip to content

Releases: mondoohq/terraform-provider-mondoo

v0.12.0

19 Jul 07:41
dc0deba
Compare
Choose a tag to compare

What's Changed

  • ⭐️ added data source for compliance frameworks by @mati007thm in #119

Full Changelog: v0.11.1...v0.12.0

v0.11.1

17 Jul 12:03
baebea9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.11.0...v0.11.1

v0.11.0

02 Jul 09:47
7233095
Compare
Choose a tag to compare

With #112 we introduced a new data source to access active policies via a data source:

data "mondoo_active_policy" "policy" {
  space_id = "your-space-1234567"
}

In addition, users can use terraform to enable compliance frameworks and even upload custom frameworks:

provider "mondoo" {
  region = "us"
}
variable "mondoo_org" {
  description = "The Mondoo Organization ID"
  type        = string
  default     = "my-org-1234567"
}
variable "my_custom_framework" {
  description = "Path to the custom policy file. The file must be in MQL format."
  type        = string
  default     = "framework.mql.yaml"
}
# Create a new space
resource "mondoo_space" "my_space" {
  name   = "Custom Framework Space"
  org_id = var.mondoo_org
}
resource "mondoo_custom_framework" "compliance_framework_example" {
  space_id = mondoo_space.my_space.id
  data_url = var.my_custom_framework
}

Huge kudos to @Pauti and @mati007thm for those contributions.

What's Changed

  • ✨ Added custom compliance framework upload and compliance framework (de)activation by @Pauti in #108
  • ⭐️ Policy data source by @mati007thm in #112

Full Changelog: v0.10.0...v0.11.0

v0.10.0

28 Jun 13:56
5bb5468
Compare
Choose a tag to compare

Thanks to the contribution from @Pauti users have full access to the asset list of a Mondoo space and can leverage them in terraform hcl:

terraform {
  required_providers {
    mondoo = {
      source  = "mondoohq/mondoo"
      version = ">= 0.4.0"
    }
  }
}

provider "mondoo" {
  region = "us"
}

variable "mondoo_org" {
  description = "Mondoo Organization"
  type        = string
}

# Create a new space
resource "mondoo_space" "my_space" {
  name   = "Terraform Space"
  org_id = var.mondoo_org
}

# Setup the Domain integration
resource "mondoo_integration_domain" "domain_integration" {
  space_id = mondoo_space.my_space.id
  host     = "mondoo.com"
  https    = true
  http     = false
}

data "mondoo_assets" "my_space" {
  space_id = mondoo_space.my_space.id
}

output "asset_mrns" {
  description = "MRNs of the assets"
  value       = [for asset in data.mondoo_assets.my_space.assets : asset.mrn]
}

output "asset_names" {
  description = "Names of the assets"
  value       = [for asset in data.mondoo_assets.my_space.assets : asset.name]
}

What's Changed

  • Bump github.com/hashicorp/terraform-plugin-testing from 1.7.0 to 1.8.0 in the gomodupdates group by @dependabot in #102
  • Bump github.com/hashicorp/terraform-plugin-docs from 0.19.2 to 0.19.3 in the gomodupdates group by @dependabot in #107
  • Bump the gomodupdates group with 2 updates by @dependabot in #110
  • Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 by @dependabot in #109
  • ⭐️ Added resource validations by @Pauti in #114
  • feat: added asset data source by @Pauti in #113
  • 🐛 space and org data source by @mati007thm in #111
  • 🧹 update dependencies by @chris-rock in #115
  • 🐛 update goreleaser version by @chris-rock in #116
  • 🧹 update changelog config for goreleaser by @chris-rock in #117

Full Changelog: v0.9.0...v0.10.0

v0.9.0

20 May 09:18
4787a66
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.0...v0.9.0

v0.8.0

08 May 23:17
eb84668
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.8.0

v0.7.0

07 May 08:42
ae11ef3
Compare
Choose a tag to compare

What's Changed

  • Bump golangci/golangci-lint-action from 4.0.0 to 5.1.0 by @dependabot in #87
  • Bump hashicorp/setup-terraform from 3.0.0 to 3.1.0 by @dependabot in #88
  • Add spellcheck GHA + fix some spelling issues by @tas50 in #89
  • Update copyright date to 2024 by @tas50 in #90
  • Bump github.com/hashicorp/terraform-plugin-docs from 0.19.1 to 0.19.2 in the gomodupdates group by @dependabot in #86
  • Bump golangci/golangci-lint-action from 5.1.0 to 5.3.0 by @dependabot in #93
  • Bump actions/setup-go from 5.0.0 to 5.0.1 by @dependabot in #94
  • feat: Integration ms365 resource by @Pauti in #91
  • 🧹 update go dependencies by @chris-rock in #95

New Contributors

  • @tas50 made their first contribution in #89

Full Changelog: v0.6.0...v0.7.0

v0.6.0

29 Apr 09:34
f8e82e9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.0...v0.6.0

v0.5.0

28 Apr 14:09
e43aad4
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

03 Mar 12:21
63399f4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.4.0