Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow creation of roles #628

Open
rwlodarczyk-xealth opened this issue Apr 11, 2024 · 0 comments
Open

feat: allow creation of roles #628

rwlodarczyk-xealth opened this issue Apr 11, 2024 · 0 comments
Labels
feat New feature or request

Comments

@rwlodarczyk-xealth
Copy link

rwlodarczyk-xealth commented Apr 11, 2024

Feature Request

Describe the Feature Request
Currently there is no way to create roles in Lacework via Terraform. It seems like users can be assigned to roles, but the roles need to be created in the UI first.

Is your feature request related to a problem? Please describe
We'd like to get all of our configuration for Lacework into Terraform so that we can track changes via git.

Describe Preferred Solution
Create:

resource "lacework_role" "read_only" {
  name = "Read only Role"

  alerts = ["READ"] # valid values: ["READ"], ["WRITE"], ["DELETE"], ["READ", "WRITE"], ["READ", "WRITE", "DELETE"]
  compliance = ["READ"]
  vulnerabilities = ["READ"]
  code_security = ["READ"]
  resources = ["READ"]
  policies = ["READ"]
  reports = ["READ"]
  subscription = ["READ"]
  identities = ["READ"]
  attack_path = ["READ"]

  notifications {
      channels = ["READ"]
      rules = ["READ"]
  }

  integrations {
      accounts = ["READ"]
      identity_providers = ["READ"]
      container_registries = ["READ"]
  }

  configuration {
      resource_groups = ["READ"]
      api_keys = ["READ"]
      agents = ["READ"]
      report_rules = ["READ"]
      data_export = ["READ"]
      ai_assistants = ["READ"]
      general = ["READ"]
  }

  usage {
      license = ["READ"]
      audit_logs = ["READ"]
      authentication = ["READ"]
  }

  access_control = ["READ"]
}

resource "lacework_team_member" "severus" {
  provider   = lacework.org
  first_name = "Severus"
  last_name  = "Snape"
  email      = "[email protected]"
  role       = "Read only Role"
}

Additional Context

@rwlodarczyk-xealth rwlodarczyk-xealth added the feat New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant