Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.35 KB

permissions.md

File metadata and controls

49 lines (40 loc) · 1.35 KB

resource codefresh_permission

Permission are used to setup access control and allow to define which teams have access to which clusters and pipelines based on tags See the documentation.

Example usage

resource "codefresh_team" "developers" {
  name = "developers"

  users = [
      "5efc3cb6355c6647041b6e49",
      "59009221c102763beda7cf04"
    ]
}

resource "codefresh_permission" "developers" {

  team = codefresh_team.developers.id
  resource = "pipeline"
  action = "run"
  tags = [
      "demo",
      "test"
    ]
}

Argument Reference

  • action - (Required) Action to be allowed. Possible values:
    • create
    • read
    • update
    • delete
    • run (Only valid for pipeline resource)
    • approve (Only valid for pipeline resource)
    • debug (Only valid for pipeline resource)
  • resource - (Required) The type of resource the permission applies to. Possible values:
    • pipeline
    • cluster
  • team - (Required) The Id of the team the permissions apply to.
  • tags - (Optional) The effective tags to apply the permission. It supports 2 custom tags:
    • untagged is a “tag” which refers to all clusters that don’t have any tag.
    • * (the star character) means all tags.

Attributes Reference

  • id - The permission ID.