Registry Mirror
Skip to content

Conversation

@emmanuelnyiko-personal

Copy link
Copy Markdown
Contributor

This is a follow up PR to #234 upon further testing I discovered that the library was trying to update queue attributes even when autoProvision is disabled for SQS transport.

This PR bypasses syncing queue attributes when auto provision is disabled. Below are some reasons why I think this change is needed.

  1. Separation of Concerns: When autoProvision is false, infrastructure management is intentionally delegated to external systems (Terraform, CloudFormation, etc.).
  2. Infrastructure as Code Conflicts: If queue attributes are managed by IaC tools, having the application sync attributes creates configuration drift. The application could override IaC-managed settings or vice versa, leading to unpredictable behavior.
  3. Trust the Pre-Provisioned Configuration: When someone explicitly disables auto-provisioning, they're saying "I've already configured this correctly externally." The application should trust that configuration rather than try to "fix" it.

@adenhertog Happy to hear your thoughts on this.

@adenhertog

Copy link
Copy Markdown
Contributor

Looks fine and fills in a gap that was missed in the last PR 👍

@adenhertog
adenhertog merged commit 18b0847 into node-ts:master Dec 9, 2025
@adenhertog

Copy link
Copy Markdown
Contributor

released in v1.1.5

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants