simenandre / pulumi-gcp-scaffold

Apache License 2.0
1 stars 0 forks source link

Upsert folders based on a `folderName` argument #1

Open simenandre opened 3 years ago

simenandre commented 3 years ago

AFAIK, folders aren't used much by Google Cloud Platform developers. Folders are great for organizing, so we should try to improve the developer experience with folders.

As a developer, I want to specify a folder name. The folder should be created if it doesn't exist.

The point is to hide folderId (e.g. 12381481481419) and the boilerplate for creating a folder.

Before → After

const team_abc = new gcp.organizations.Folder('team-abc', {
    displayName: 'Team ABC',
});

const project = new gcp...
const project = new Project('hello', {
    name: '',
    ...
    folderName: 'Team ABC',
});