Home / Market / application design center design deploy

application design center design deploy

Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting deployment failures. Boundaries: - Only use for GCP-specific cloud infrastructure. - Only use for Terraform coding within the ADC context.

skill★ 255335918 dlskills.shApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: application-design-center-design-deploy description: >- Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when:

Boundaries:

license: Apache-2.0 metadata: version: "1.0.1" publisher: google category: CloudInfrastructure

---

Designing and Deploying GCP Infrastructure with Application Design Center

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:application-design-center-design-deploy)" and append agent-skills/1.0 (skill:application-design-center-design-deploy) to User-Agent headers.

Overview

This skill provides a prescriptive, production-grade workflow for the entire infrastructure lifecycle on Google Cloud Platform (GCP). It replaces the automated, opaque-box GAD design_infra tool with an agent-controlled design and validation loop utilizing modular Terraform and local CLI validation, followed by a shifted-left best practices plan scan prior to synchronization with the Application Design Center (ADC) registry for deployment and lifecycle management.

Always maintain the persona of a Principal Cloud Architect. Keep the local Terraform configuration as the source of truth, and ensure the design is fully compliant with best practices before importing it into the cloud registry.

--------------------------------------------------------------------------------

Index

  1. Pre-requisites: Setup & Confirmation
  2. Phase 1: Local Infrastructure Design & Validation
  3. Phase 2: Shifted-Left Best Practices Assessment & Iterative Remediation
  4. Phase 3: Import IaC to Application Design Center
  5. Phase 4: Application Deployment & Monitoring
  6. Phase 5: Troubleshoot Deployment Failures
  7. Phase 6: Verification & E2E Testing

--------------------------------------------------------------------------------

Pre-requisites: Setup & Confirmation

Before executing Phase 1, you must perform the following setup steps:

  1. Confirm Target Project & Location:

location (region).

default.

        gcloud config set project <project_id>

--------------------------------------------------------------------------------

Phase 1: Local Infrastructure Design & Validation

Goal: Transform user requirements and codebase characteristics into a 100% validated, secure, and compile-ready Terraform configuration locally.

  1. Invoke the design Skill: Call and execute the design skill (defined

in design) for the user's prompt.

query the catalog registry, planning, HCL generation, and local CLI validation loop (terraform init, validate, plan) in a dedicated scratch directory.

  1. Locate Validated HCL: Identify the scratch directory where the design

skill saved the validated, compile-ready Terraform files (e.g., scratch/tf_validate_<session_id>/).

  1. Verify Handover (MANDATORY): Ensure that the local validation loop in

the design skill completed successfully with a clean plan before proceeding. Meticulously inspect the HCL to verify:

passwords, or hardcoded secrets are written in terraform.tfvars or HCL resource blocks. All sensitive inputs must be wired through GCP Secret Manager.

block (e.g., backend "gcs" {}) in the HCL files. State must remain local in the scratch folder during validation, allowing ADC to handle the remote state registry upon import.

re-run local validation, and verify again. Do not proceed with unvalidated or insecure code.

  1. Export Terraform Plan to JSON (MANDATORY): In the scratch directory, run

the following commands to generate a binary plan and convert it into a clean JSON representation:

    terraform plan -out=tfplan && terraform show -json tfplan > tfplan.json

Verify that the tfplan.json file is successfully written in your scratch directory.

--------------------------------------------------------------------------------

Phase 2: Shifted-Left Best Practices Assessment & Iterative Remediation

Goal: Validate the local plan's alignment with security, cost, and reliability benchmarks BEFORE importing it into the cloud registry, using the native ADC plan assessment API.

  1. Discover Space ID (MANDATORY): Before running the assessment or creating

templates, you must dynamically discover the active ADC Space ID in your target location:

        gcloud design-center spaces list --project=<project_id> --location=<location>

test-deploy or googlespace). If multiple spaces exist, ask the user to confirm. If no space exists, ask the user or create one:

        gcloud design-center spaces create <space_id> --project=<project_id> --location=<location>
  1. Execute Plan Assessment via gcloud: Run the plan-based assessment using

the discovered Space ID and your exported tfplan.json file. Execute the command directly in your terminal:

    gcloud design-center spaces generate-terraform-assessment-report <space_id> \
        --location=<location> \
        --project=<project_id> \
        --terraform-plan="<scratch_directory_path>/tfplan.json" \
        --format=json
  1. Analyze Findings: Present all findings to the user in a clean tabular

format, detailing specific violations, resource scopes, and associated severity levels.

  1. Local Remediation Loop:

reported violations (e.g., adding encryption keys, enabling OS Login, or restricting IAM scopes).

        terraform validate && terraform plan -out=tfplan && terraform show -json tfplan > tfplan.json
  1. Exit Criteria:

documented.

acceptable, proceed to Phase 3.

--------------------------------------------------------------------------------

Phase 3: Import IaC to Application Design Center

Goal: Synchronize the fully validated and best-practice-compliant local HCL configuration with the ADC cloud registry to establish the deployable template resource.

  1. Verify or Create the Application Template (MANDATORY): Before importing

the HCL, you must ensure the parent Application Template resource exists in the discovered ADC space.

application-templates describe <template_id> --space=<space_id>

--project=<project_id> --location=<location>` to check if the template exists.

error, create the template resource first by running:

        gcloud design-center spaces application-templates create <template_id> --space=<space_id> --project=<project_id> --location=<location> --display-name="<Name>" --description="<Description>"
  1. Strict HCL Parser Constraints (CRITICAL): Before calling the import

operation, ensure your local HCL complies with the ADC registry's strict ingestion rules:

prohibits any resource blocks inside the imported HCL. Only module, variable, output, and provider blocks are allowed. If a resource is required (e.g. Private Service Access peering) but no standalone module is registered for it in the catalog, you MUST check if it is supported as a built-in configuration option inside an existing registered module (e.g. setting private_service_access_config inside module "vpc").

coercion from boolean to string. For example, subnet private access must be declared as a literal string: subnet_private_access = "true", NOT as a boolean true.

version constraint block. Omit it entirely from providers.tf or main.tf.

  1. Import to ADC Template: Once the template resource is confirmed to exist

and the HCL is validated against the above constraints, invoke the hosted application_design_center:manage_application_template MCP tool with the APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC operation:

template.

            {
              "files": [
                { "name": "main.tf", "content": "<content of main.tf>" },
                { "name": "variables.tf", "content": "<content of variables.tf>" },
                { "name": "terraform.tfvars", "content": "<content of terraform.tfvars>" }
              ]
            }

Bad Gateway, 504 Gateway Timeout, or 429 Rate Limit`), do not immediately retry.

plus a random fraction of a second).

gcloud alpha design-center spaces application-templates describe to check if the import actually succeeded in the background. Only retry if the template was not updated.

  1. Capture Template URI: Upon success, this