Skip to content

[Feature Request] Automate Project ID randomization for soft-delete mitigation #50

Closed

Description

@aghassemlouei

Feature Description

Append a randomized string to all generated Google Cloud Project IDs.

Use Case

If a Google Cloud project is deleted, it enters a 30-day soft-delete lock. Terraform deployments currently fail if a developer attempts to redeploy to the same environment using the same project name.

Proposed Solution

Integrate a random_string or random_id Terraform resource into the base project creation modules to append a 4-character unique hash to all generated Project IDs, preventing naming collisions.

Compliance & Deployment Context

  • Target Deployment Type(s):
    • US Region Restricted (e.g., Access Policy constraint)
    • FedRAMP Medium
    • FedRAMP High
    • DoD IL4
    • DoD IL5
    • All / General

Reusability Check

Stellar Engine prioritizes reusability.

  • I have checked if this functionality can be achieved by extending an existing module or blueprint.
  • I have verified that this does not duplicate existing functionality.

Alternatives Considered

Forcing developers to manually change variable names every time they tear down and rebuild an environment.

Additional Context

This was explicitly requested in the legacy Feature Braindump from 2023.

Activity

  1. added
    Enhancement
    on May 5, 2026
  2. added
    Level of Effort - Medium
    Priority - Medium
    Scope - Fast
    on Oct 13, 2026
  3. aghassemlouei commented on Oct 27, 2026

    @aghassemlouei
    MemberAuthor

    Resolved in #357 via stellar init --new-prefix (which generates a fresh deterministic environment prefix when redeploying or cloning an environment with --answers-from) and stellar preflight checks that detect soft-deleted Stage 0 and Stage 1 project IDs before Terraform runs, preserving deterministic prefix tokens per the repository naming conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementLevel of Effort - MediumPriority - MediumScope - Fast

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions