Skip to content

Remove backend definition in terraform root module #311

@Donovan1905

Description

@Donovan1905

Description

Context

This repository provides a Terraform module, not a root infrastructure project.

Currently, the repository contains a backend.tf file defining a Terraform backend configuration. However, backend configuration is not appropriate inside a reusable module.

Problem

Terraform backends are:

  • Defined at the root module level
  • Specific to a consumer’s environment
  • Tightly coupled to an organization’s state management strategy

By including backend.tf in this module:

  • We impose a backend choice on users
  • We reduce flexibility for consumers
  • We mix module logic with infrastructure state configuration
  • We potentially create conflicts when the module is consumed inside another root module

A Terraform module should remain backend-agnostic.

Tasks

  • Remove backend.tf from this repository

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions