Skip to content

refactor(terraform): decouple EBS volumes from EC2 instance resource — Layer 2 #276

Description

@bhumi46

Part of #273

What

Replace inline ebs_block_device blocks inside aws_instance with separate aws_ebs_volume + aws_volume_attachment resources in their own Terraform root.

Why

EBS volumes defined as inline ebs_block_device blocks are owned by the aws_instance resource. Resizing or adding a volume requires modifying the instance resource itself, risking instance replacement.

Acceptance Criteria

  • ebs component is a standalone Terraform root under terraform/implementations/aws/ebs/
  • Uses aws_ebs_volume + aws_volume_attachment (not inline blocks)
  • Volumes can be added, resized, or detached independently of EC2 instance lifecycle
  • Reads EC2 instance IDs via data "aws_instance" by tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions