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
}
Please authenticate to join the conversation.
👀 In Review
💡 Feature Requests
Access Control
4 months ago
Get notified by email when there are changes.
👀 In Review
💡 Feature Requests
Access Control
4 months ago
Get notified by email when there are changes.