Skip to content

Module does not pick up on changes made to task_cpu / task_memory made outside of terraform #259

Open
@maggie-weber

Description

@maggie-weber

Describe the Bug

If changes are made to the task_cpu or task_memory values outside of terraform, the module does not see those changes and will not attempt to revert them to the values specified in the module definition.

This was observed using 0.76.0 with FARGATE launch type.

Expected Behavior

The module will observe changes made to the configuration of the ECS task definition made outside of Terraform, and will change the values for these fields back to their original values when deployed.

Steps to Reproduce

  • Create a Fargate task using this module.
  • Set task_memory and task_cpu to any appropriate value.
  • Using the AWS console, deploy a new version of the module with task_memory and task_cpu changed to any other values.
  • terraform plan and observe that cpu and memory are not shown
  • Deploy the application and observe that cpu and memory are still the manually set values even though the infrastructure code specifies differently.

Screenshots

No response

Environment

  • OS: WSL
  • OpenTofu
  • Version 0.76.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions