silly-match-79024
07/31/2024, 3:00 PMimport * as provider from @pulumi/myCloud
const myProject = new provider.Project("MyProject", {
name: "my-fullstack-pulumi",
region: "us-east-1",
cloudProvider: "my-cloud"
});
const myDatabase = new provider.Database("MyDatabase", {
project: myProject
name: "my-database",
type: "postgres",
});
Or do i have to define my database resource to have the project
type and then manually set the outputs of MyProject
in the myDatabase
variable?
Main point is that i have some resources which require a project to be created and i wanted some insight on how should i approach this problemNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by