CDKTF with gitlab provider to managing groups, sub-groups and repositories

I’m newbie with CDK. Performing a PoC (Python) for managing gitlab groups, sub-groups and repositories. Whatever I tried didn’t work.
Do you have a working example for this use case?

In case they’re useful, here are some examples, but they’re for GitHub instead of GitLab, and it’s using “Helicopyter” to allow autogenerated and handwritten HCL to work together instead of vanilla CDKTF.

Repositories:

People:

from cdktf_cdktf_provider_github.membership import Membership

from stacks.base import BaseStack

buddies = {'christopher.covington': 'covracer'}

def synth(stack: BaseStack) -> None:
    stack.provide('github', owner='biobuddies')
    for firstname_dot_lastname, (username, role) in buddies.items():
        stack.push(
            Membership, firstname_dot_lastname.replace('.', '_'), role=role, username=username
        )

Thanks for sharing. I’ll give it a try.