# Set up Application Design Center

Setting up Application Design Center lets administrators establish an
[application management
boundary](https://docs.cloud.google.com/application-design-center/docs/key-concepts#app-mgmt-boundary) where
teams can design, share, and manage cloud infrastructure using an
application-centric model. During initial setup, you configure a team
collaboration space, template catalogs, and buckets for Terraform storage.

## Before you begin

### Choose a storage bucket option

When you create templates and applications, App Design Center
stores Terraform code in a Cloud Storage bucket. Choose one of the following
storage bucket options:

- *Automatically create a new bucket*: Perform the setup in the console.
- *Use an existing storage bucket*: Complete the setup using the App Design Center API.

You might use your own bucket if you have organization policies that prevent you
from creating new buckets, or if you have established business practices that
dictate bucket creation.

#### Verify existing storage bucket access

To complete the setup and use your own bucket, verify the following:

1. You have access to use APIs. For more information, see
   [Set up API access](https://docs.cloud.google.com/docs/get-started/access-apis.md.txt).

2. Your bucket is in the same management project where you want to set up App Design Center.

3. You have the following [permissions](https://docs.cloud.google.com/storage/docs/access-control/iam-permissions.md.txt) on the bucket:

   - `storage.buckets.get`
   - `storage.objects.create`

### Choose your application management boundary

An [application management boundary](https://docs.cloud.google.com/application-design-center/docs/key-concepts.md.txt#app-mgmt-boundary)
is a centralized place for application management tasks, including API
enablement, access control, billing, and quotas. Within the boundary, you can
monitor, troubleshoot, optimize costs, and manage your Google Cloud resources in
the context of your application.

Choose the boundary model that fits your organization:

- *Single-project boundary* ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): Best for new users or small organizations where all resources reside in one project.
- *Folder-level boundary*: Best for large organizations that manage resources across multiple projects and subfolders.

The following table compares the features of each boundary model:

| Feature | Single-project boundary ([Preview](https://docs.cloud.google.com/products#product-launch-stages)) | Folder-level boundary |
|---|---|---|
| Flexibility | Complete the setup using default settings. | - Specify a name for your space. - Select whether to disable Google-provided templates. - Post-setup, you can create additional spaces in the application management boundary. |
| Integrated products | - App Design Center - [App Hub](https://docs.cloud.google.com/app-hub/docs/overview.md.txt) - [Application Monitoring](https://docs.cloud.google.com/monitoring/docs/about-application-monitoring.md.txt) | - App Design Center - [App Hub](https://docs.cloud.google.com/app-hub/docs/overview.md.txt) - [Cloud Hub](https://docs.cloud.google.com/hub/docs/overview.md.txt) - [Gemini Cloud Assist](https://docs.cloud.google.com/cloud-assist/overview.md.txt) - [Application Monitoring](https://docs.cloud.google.com/monitoring/docs/about-application-monitoring.md.txt) |

### Enable application management

When you enable application management, the system does one of the following to
help you manage quotas and billing for your application:

- *Single-project* ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): The system configures your project as a [management project](https://docs.cloud.google.com/application-design-center/docs/key-concepts.md.txt#mgmt-project).
- *Folder-level*: The system creates a new management project in the folder.

To enable application management, do the following:

### Single-project (Preview)

1. Make sure that your project has a [linked billing account](https://docs.cloud.google.com/billing/docs/how-to/verify-billing-enabled.md.txt).

2. Make sure that you have the [required roles](https://docs.cloud.google.com/application-design-center/docs/setup.md.txt#required-iam-roles) to
   enable application management and complete the setup, which creates your space.

3. Application management is automatically enabled on your project when you
   complete the setup using the console. Alternatively,
   to perform the setup using the App Design Center API,
   [enable application management](https://docs.cloud.google.com/app-hub/docs/set-up-app-hub-single-project.md.txt#set-up)
   on your project.

### Folder-level

1. Make sure that you have an [organization resource](https://docs.cloud.google.com/resource-manager/docs/creating-managing-organization.md.txt).

2. Make sure that you have the [required roles](https://docs.cloud.google.com/resource-manager/docs/manage-applications.md.txt#roles) to enable application management.

3. [Configure a folder for application management](https://docs.cloud.google.com/resource-manager/docs/manage-applications.md.txt#configure-folder-app-management).

4. [Link a billing account to the management project](https://docs.cloud.google.com/resource-manager/docs/manage-applications.md.txt#billing).

5. [Configure the observability scope](https://docs.cloud.google.com/resource-manager/docs/manage-applications.md.txt#configure-observability-scope) for the management project.

6. Make sure that you have the [required roles](https://docs.cloud.google.com/application-design-center/docs/setup.md.txt#required-iam-roles) to complete the setup and create your space.

### Verify required IAM roles

To perform the setup, ask your administrator to grant you the necessary
Identity and Access Management (IAM) roles on your project,
[management project](https://docs.cloud.google.com/application-design-center/docs/key-concepts.md.txt#mgmt-project),
or [app-enabled
folder](https://docs.cloud.google.com/application-design-center/docs/key-concepts#app-enabled-folder), as
listed in the following table:

| Task | Required roles |
| Perform single-project initial setup ([Preview](https://docs.cloud.google.com/products#product-launch-stages)) | All of the following predefined roles on the project: - Application Design Center Admin (`roles/designcenter.admin`) - Service Usage Admin (`roles/serviceusage.serviceUsageAdmin`) - App Hub Viewer (`roles/apphub.viewer`) or App Hub Admin (`roles/apphub.admin`) If you created the project and already have the Owner basic role (`roles/owner`), then you don't need additional roles. In production environments, grant the preceding predefined roles rather than basic roles to follow the principle of least privilege. |
| Perform folder-level initial setup | Both of the following predefined roles: - Application Design Center Admin (`roles/designcenter.admin`) on either the management project (recommended) or the app-enabled folder (not both), after configuring the folder using the [roles to enable application management](https://docs.cloud.google.com/resource-manager/docs/manage-applications.md.txt#roles). Application Design Center Admin includes all permissions in Application Admin (`roles/designcenter.applicationAdmin`). - Folder Viewer (`roles/resourcemanager.folderViewer`) on the app-enabled folder when selecting the folder in the console. |
|---|---|

For App Design Center role descriptions, see
[Access control with IAM](https://docs.cloud.google.com/application-design-center/docs/access-control.md.txt#role-descriptions).
To grant roles on a project or folder using the console, the
Google Cloud CLI, the REST API, or client libraries, see
[Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).
For folder-level IAM concepts and inheritance, see
[Access control for folders with IAM](https://docs.cloud.google.com/resource-manager/docs/access-control-folders.md.txt).

## Set up App Design Center and create a new storage bucket

The setup process in the console creates a new
Cloud Storage bucket to store application information. To use an
existing bucket, see [Set up App Design Center and use your own storage bucket](https://docs.cloud.google.com/application-design-center/docs/setup.md.txt#setup-own-storage).

### Single-project (Preview)

To enable application management on a single project and set up
App Design Center, do the following:

1. Go to the **Application Design Center Overview** page.

   [Go to Overview](https://console.cloud.google.com/products/design-center/overview)
2. From the project picker, select the project where you want to configure
   application management.

3. Click **Go to Setup**.

4. In the **Setup your project for application management** pane, review
   the list of APIs that will be enabled.

5. Click **Enable** . The system enables the APIs, and creates the storage
   bucket and **default-space** space.

6. To store the Google Cloud resources that you deploy with
   App Design Center, create standard projects in your
   organization.

### Folder-level

To set up App Design Center on your [app-enabled folder](https://docs.cloud.google.com/application-design-center/docs/key-concepts.md.txt#app-enabled-folder), do the following:

1. Go to the **Application Design Center Overview** page.

   [Go to Overview](https://console.cloud.google.com/products/design-center/overview)
2. Click **Select folder** and select your [app-enabled
   folder](https://docs.cloud.google.com/application-design-center/docs/setup#enable-app-management).

3. Click **Set up ADC**.

4. In the **My space name** field, enter a name for your space. You can't
   edit this name later.

5. By default, the space contains [components](https://docs.cloud.google.com/application-design-center/docs/supported-resources.md.txt)
   and [application
   templates](https://docs.cloud.google.com/application-design-center/docs/build-on-google-templates)
   that are created by Google. To remove Google components and application
   templates from the space, clear the **Enable Google opinionated
   templates** checkbox.

   If you remove Google opinionated templates, space users can only use the
   [components that you import](https://docs.cloud.google.com/application-design-center/docs/import-components.md.txt)
   and the [application templates that you
   create](https://docs.cloud.google.com/application-design-center/docs/design-application-templates).
6. Click **Complete setup**. The system enables the APIs, and creates the
   storage bucket and space.

7. To store the Google Cloud resources that you deploy with
   App Design Center, create standard projects in your
   [app-enabled folder](https://docs.cloud.google.com/application-design-center/docs/key-concepts.md.txt#app-enabled-folder).

## Set up App Design Center and use your own storage bucket

When you set up App Design Center, you can use your own
Cloud Storage bucket to store Terraform code. For example, you might
use an existing bucket if your organization policies prevent you from creating
new buckets.

To set up Application Design Center and use your own Cloud Storage
bucket, you must use the App Design Center API. Do the
following:

1. Identify the bucket name.

2. Create your API call using the
   [`projects.locations.spaces`](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces.md.txt)
   resource. The API request path takes the format
   `projects/<var>PROJECT_ID</var>/locations/<var>LOCATION</var>`, where
   `<var>PROJECT_ID</var>` is one of the following:

   - For a single-project [boundary](https://docs.cloud.google.com/application-design-center/docs/key-concepts.md.txt#app-mgmt-boundary), use your project ID.
   - For a folder-level boundary, use the ID of the management project that you created during the application management setup.

   Perform the following configuration in your API call:
   1. Specify your bucket name in the `gcs_bucket` field. For example, if the
      bucket URI is `gs://my-bucket`, the bucket name is `my-bucket`.

   2. Use the
      [`projects.locations.spaces.create`](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/projects.locations.spaces/create.md.txt)
      method to create the space.

   Running this method creates your space, sets your bucket as the storage
   location for application information, enables the required APIs, and
   completes the setup process.

## What's next

- Deploy your first application from a Google template by following [Quickstart: Customize and deploy a Google template](https://docs.cloud.google.com/application-design-center/docs/quickstart-deploy-google-template.md.txt).
- Manage team permissions by [providing access to space users](https://docs.cloud.google.com/application-design-center/docs/manage-spaces.md.txt#manage_space_users).
- Share templates by [creating additional spaces](https://docs.cloud.google.com/application-design-center/docs/manage-spaces.md.txt#create-spaces-share-catalogs).
- Review core concepts and benefits with the [App Design Center overview](https://docs.cloud.google.com/application-design-center/docs/overview.md.txt).
- Publish templates by [managing template catalogs](https://docs.cloud.google.com/application-design-center/docs/manage-catalogs.md.txt).