PaloAltoNetworks / terraform-provider-prismacloudcompute

Terraform provider for Prisma Cloud Compute
https://registry.terraform.io/providers/PaloAltoNetworks/prismacloudcompute/latest
Mozilla Public License 2.0
24 stars 27 forks source link

feat: add tag resource #75

Open someone-stole-my-name opened 11 months ago

someone-stole-my-name commented 11 months ago

Add test cases

Description

Allows managing compute tag resources.

Motivation and Context

We need tags to manage vulnerabilities.

How Has This Been Tested?

On our own tenant with TF_ACC=1 go test -v ./internal/provider/... -run TestAccTagConfig and TF:

resource "prismacloudcompute_tag" "test" {
  name        = "test"
  assignment {
    id            = "CVE-2021-29923"
    resource_type = "image"
  }
}
Terraform will perform the following actions:

  # prismacloudcompute_tag.test will be created
  + resource "prismacloudcompute_tag" "test" {
      + color = "#A020F0"
      + id    = (known after apply)
      + name  = "test"

      + assignment {
          + id            = "CVE-2021-29923"
          + package_name  = "*"
          + resource_type = "image"
        }
    }

Types of changes

Checklist

welcome-to-palo-alto-networks[bot] commented 11 months ago

:tada: Thanks for opening this pull request! We really appreciate contributors like you! :raised_hands: