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
- Problem
Log in to comment and vote
No comments yet
Be the first to share your thoughts.