Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Managing GroupSync and Organizations #230

Closed
Assignees
ethanndickson
@calebwashburn

Description

@calebwashburn

If trying to terraform out both an organization, groups and idp sync of users to groups for a given organization, there is a cyclical problem where I cannot map the group under the group_sync of an organization as this requires a groups unique id

resource "coderd_organization" "this" {  name         = "blueberry"  display_name = "Blueberry"  description  = "The organization for blueberries"  icon         = "/emojis/1fad0.png" group_sync {    field = "groups"    mapping = {      org_x_users = [coderd_group.this.id] # cannot reference this as doesn't exist yet    }  }

because in order to create the group I need the organization_id.

resource "coderd_group" "this" {  name            = "org_x_users"  # needs organization to be created first above before group can be created in the org  organization_id = coderd_organization.this.id   quota_allowance = 5  members = []  lifecycle {    ignore_changes = [members]  }}

While I can go into UI and map this after the organization and group is created would prefer to have a different resource to configure group sync settings and allow terraform to manager the dependency of creating org, 1-N groups and then creating group_sync settings for the org

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp