Skip to content

Conversation

@peter-smith-phd
Copy link
Contributor

@peter-smith-phd peter-smith-phd commented Dec 18, 2025

Motivation

Complete implementation of the AWS::SQS::Queue, AWS::SQS::QueuePolicy and AWS::SQS::QueueInlinePolicy CloudFormation resources for SQS.

Changes

The changes can be reviewed in three different groups, which are mostly isolated from each other. If you prefer, I could create three separate PRs.

  • Anything with aws_sqs_queue in the name is related to AWS::SQS::Queue. These are very minor changes to adjust to the new generated subdirectory for auto-generated file.
  • Anything with aws_sqs_queuepolicy in the name is related to AWS::SQS::QueuePolicy. This is also a refactoring of file location, but also includes a bug fix to update.
  • Anything with aws_sqs_queueinlinepolicy in the name is related to AWS::SQS::QueueInlinePolicy. A full implementation of this resource type (there was no existing code for this).

Note that the .schema.json files are auto-downloaded from AWS, and therefore can't be hand-edited.

Tests

  • Extensive test cases to cover create/update/delete.

Related

https://linear.app/localstack/issue/ENG-162/enhance-cloudformation-test-cases-for-sqs-and-fix-bugs

@peter-smith-phd peter-smith-phd added aws:sqs Amazon Simple Queue Service semver: patch Non-breaking changes which can be included in patch releases docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes labels Dec 18, 2025
@github-actions
Copy link

github-actions bot commented Dec 18, 2025

Test Results - Preflight, Unit

23 046 tests  ±0   21 201 ✅ ±0   6m 26s ⏱️ +39s
     1 suites ±0    1 845 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit da6932c. ± Comparison against base commit 3bcdd33.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   2m 57s ⏱️ -5s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit da6932c. ± Comparison against base commit 3bcdd33.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

Test Results - Alternative Providers

583 tests   325 ✅  17m 49s ⏱️
  1 suites  258 💤
  1 files      0 ❌

Results for commit 4a98793.

@github-actions
Copy link

github-actions bot commented Dec 19, 2025

Test Results (amd64) - Integration, Bootstrap

    5 files      5 suites   1h 37m 0s ⏱️
3 557 tests 3 362 ✅ 195 💤 0 ❌
3 563 runs  3 362 ✅ 201 💤 0 ❌

Results for commit da6932c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 19, 2025

LocalStack Community integration with Pro

    2 files  ±    0      2 suites  ±0   1h 8m 28s ⏱️ - 46m 6s
3 533 tests  - 1 622  3 335 ✅  - 1 423  198 💤  - 199  0 ❌ ±0 
3 535 runs   - 1 622  3 335 ✅  - 1 423  200 💤  - 199  0 ❌ ±0 

Results for commit da6932c. ± Comparison against base commit 3bcdd33.

This pull request removes 1628 and adds 6 tests. Note that renamed tests count towards both.
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_lambda_dynamodb
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_opensearch_crud
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_search_books
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_setup
tests.aws.scenario.kinesis_firehose.test_kinesis_firehose.TestKinesisFirehoseScenario ‑ test_kinesis_firehose_s3
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_destination_sns
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_infra
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_prefill_dynamodb_table
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input0-SUCCEEDED]
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input1-SUCCEEDED]
…
tests.aws.services.sqs.resource_providers.test_aws_sqs_queueinlinepolicy ‑ test_create_sqs_with_inlinepolicy
tests.aws.services.sqs.resource_providers.test_aws_sqs_queueinlinepolicy ‑ test_update_sqs_remove_inlinepolicy
tests.aws.services.sqs.resource_providers.test_aws_sqs_queueinlinepolicy ‑ test_update_sqs_with_inlinepolicy
tests.aws.services.sqs.resource_providers.test_aws_sqs_queuepolicy ‑ test_update_add_two_additional_queues_to_policy
tests.aws.services.sqs.resource_providers.test_aws_sqs_queuepolicy ‑ test_update_remove_two_queues_from_policy
tests.aws.services.sqs.resource_providers.test_aws_sqs_queuepolicy ‑ test_update_to_remove_queuepolicy_from_template

♻️ This comment has been updated with latest results.

@peter-smith-phd peter-smith-phd marked this pull request as ready for review January 5, 2026 17:12
Copy link
Member

@baermat baermat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good to me! There are 2 comments that seem to state incorrect information, otherwise we are good to go. Sorry for the late response, Christmas/New Year holiday :)

Comment on lines 1 to 3
#
# A standard SQS queue with an associated queue inline policy allowing a few actions.
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a copy paste error, there is no associated policy as far as I can see unless I misunderstood something. Please adjust/remove the comment :)

Comment on lines 1 to 3
#
# A standard SQS queue with an associated queue policy allowing a few actions.
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as before

… resource providers.

# Conflicts:
#	localstack-core/localstack/services/sqs/resource_providers/aws_sqs_queuepolicy.py
@peter-smith-phd
Copy link
Contributor Author

Thanks @baermat, I've made your suggested changes.

@peter-smith-phd peter-smith-phd merged commit 3e92156 into main Jan 8, 2026
51 of 53 checks passed
@peter-smith-phd peter-smith-phd deleted the sqs/cfn-resources branch January 8, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws:sqs Amazon Simple Queue Service docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants