Application
Allows creation and management of an App Engine application.
App Engine applications cannot be deleted once they're created; you have to delete the entire project to delete the application. This provider will report the application has been successfully deleted; this is a limitation of the provider, and will go away in the future. This provider is not able to delete App Engine applications.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myProject = new gcp.organizations.Project("my_project", {
name: "My Project",
projectId: "your-project-id",
orgId: "1234567",
});
const app = new gcp.appengine.Application("app", {
project: myProject.projectId,
locationId: "us-central",
});
import pulumi
import pulumi_gcp as gcp
my_project = gcp.organizations.Project("my_project",
name="My Project",
project_id="your-project-id",
org_id="1234567")
app = gcp.appengine.Application("app",
project=my_project.project_id,
location_id="us-central")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myProject = new Gcp.Organizations.Project("my_project", new()
{
Name = "My Project",
ProjectId = "your-project-id",
OrgId = "1234567",
});
var app = new Gcp.AppEngine.Application("app", new()
{
Project = myProject.ProjectId,
LocationId = "us-central",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/appengine"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myProject, err := organizations.NewProject(ctx, "my_project", &organizations.ProjectArgs{
Name: pulumi.String("My Project"),
ProjectId: pulumi.String("your-project-id"),
OrgId: pulumi.String("1234567"),
})
if err != nil {
return err
}
_, err = appengine.NewApplication(ctx, "app", &appengine.ApplicationArgs{
Project: myProject.ProjectId,
LocationId: pulumi.String("us-central"),
})
if err != nil {
return err
}
return nil
})
}
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 com.pulumi.gcp.appengine.Application;
import com.pulumi.gcp.appengine.ApplicationArgs;
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()
.name("My Project")
.projectId("your-project-id")
.orgId("1234567")
.build());
var app = new Application("app", ApplicationArgs.builder()
.project(myProject.projectId())
.locationId("us-central")
.build());
}
}
resources:
myProject:
type: gcp:organizations:Project
name: my_project
properties:
name: My Project
projectId: your-project-id
orgId: '1234567'
app:
type: gcp:appengine:Application
properties:
project: ${myProject.projectId}
locationId: us-central
Import
Applications can be imported using the ID of the project the application belongs to, e.g.
{{project-id}}
When using thepulumi import
command, Applications can be imported using one of the formats above. For example:
$ pulumi import gcp:appengine/application:Application default {{project-id}}
Properties
The domain to authenticate users with when using App Engine's User API.
The GCS bucket code is being stored in for this app.
The type of the Cloud Firestore or Cloud Datastore database associated with this application. Can be CLOUD_FIRESTORE
or CLOUD_DATASTORE_COMPATIBILITY
for new instances. To support old instances, the value CLOUD_DATASTORE
is accepted by the provider, but will be rejected by the API. To create a Cloud Firestore database without creating an App Engine application, use the gcp.firestore.Database
resource instead.
The GCS bucket content is being stored in for this app.
The default hostname for this app.
A block of optional settings to configure specific App Engine features:
Settings for enabling Cloud Identity Aware Proxy
The location to serve the app from.
The serving status of the app.
A list of dispatch rule blocks. Each block has a domain
, path
, and service
field.