Skip to content

[Feature Request] Automate backend.tf state bucket substitutions #49

Closed

Description

@aghassemlouei

Feature Description

Automate the injection of state bucket names into backend.tf files.

Use Case

During the bootstrap phase, developers are currently forced to run manual command-line sed replacements to swap out UPDATE_ME placeholders with actual bucket names.

Proposed Solution

Develop a lightweight Go or Bash pre-flight script to handle variable substitution in backend.tf files dynamically before terraform init is run.

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

Keeping the manual sed instructions in the README, which leads to user error.

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 - Low
    Priority - Medium
    Scope - Fast
    on Oct 13, 2026
  3. aghassemlouei commented on Oct 20, 2026

    @aghassemlouei
    MemberAuthor

    Closing as resolved on main. Static backend.tf files with UPDATE_ME placeholders have been replaced by Stage 0 generated *-providers.tf files in the GCS outputs bucket, which fast/stage-links.sh and scripts/deploy.sh pull before terraform init, and stellar preflight (#305, merged at 0fb5fcb3) validates the Stage 0 bootstrap prerequisites prior to initialization.

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 - LowPriority - MediumScope - Fast

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions