Project
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myProject = new Project("myProject", ProjectArgs.builder()
.orgId("1234567")
.projectId("your-project-id")
.build());
}
}
Content copied to clipboard
Import
Projects can be imported using the project_id
, e.g.
$ pulumi import gcp:organizations/project:Project my_project your-project-id
Content copied to clipboard
Properties
Link copied to clipboard
Create the 'default' network automatically. Default true. If set to false, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you set auto_create_network to false, since the network will exist momentarily.
Link copied to clipboard
The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of org_id
or folder_id
may be specified. If the org_id
is specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.
Link copied to clipboard