Terraform Data source for idp_group_mappings

Since spacelift_role_attachment requires an id, a lookup for the idp group mapping that returns the id would be useful:


data "spacelift_idp_group_mapping" “okta_group1” {

group_id = “okta_group1”

}

data "spacelift_role" "read" {

slug = "space-reader"

}

resource "spacelift_role_attachment" "read" {

idp_group_mapping_id = data.spacelift_idp_group_mapping.okta_group1.id

role_id = data.spacelift_role.read.id

space_id = spacelift_space.this.id

}

Workaround
Hardcode the idp_group_mapping id directly
Problem
spacelift_role_attachment must live in the same codebase as the idp_group_mapping creation

Please authenticate to join the conversation.

Upvoters
Status

👀 In Review

Board

💡 Feature Requests

Tags

Access Control

Date

4 months ago

Subscribe to post

Get notified by email when there are changes.