Implement AWS SQS module with metadata-driven configuration following IMPLEMENTATION_PLAN.md #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR completes the implementation of the
Intent.Modules.Aws.Sqsmodule by following the specifications inIMPLEMENTATION_PLAN.md. The module provides AWS SQS eventing infrastructure for Intent Architect applications with fully metadata-driven configuration.What Was Implemented
1. Shared Project Infrastructure (
Intent.Modules.Integration.IaC.Shared.AwsSqs)Created a shared project that provides the metadata aggregation layer used by the main module:
IntegrationManager.cs- Singleton class that scans all applications in a solution for AWS SQS module usage, aggregates published and subscribed messages from metadata, and provides queryable collections for template generationSqsMessage.cs- Concrete implementation that wraps message models with queue name resolution (from stereotype or convention-based kebab-case naming)SqsItemBase.cs- Abstract base record defining common properties for SQS itemsSqsMethodType.cs- Simple enum for Publish/Subscribe operations2. API Extensions
MessageModelStereotypeExtensions.cs- Provides theAWS SQSstereotype that can be applied to message models in the Eventing designer, with properties forQueueNameandQueueUrl(optional)3. Factory Extensions
MetadataLoaderExtension.cs- Factory extension that initializes theIntegrationManagerafter metadata load, making aggregated message metadata available to all templates4. Metadata-Driven Configuration
Updated the
SqsConfigurationtemplate to useIntegrationManagerfor fully automated configuration:AddQueue<TMessage>()calls for each published messageAdd<TMessage, THandler>()calls for each subscriptionResult: Zero manual configuration required - everything is derived from Intent Architect models.
Key Features
Convention Over Configuration
ClientCreatedEvent→client-created)AwsSqs:{MessageName}:QueueUrlpatternSimpler Architecture Than Azure Service Bus
Integration Pattern
Follows the same core + bridge architecture as Azure Service Bus:
IEventBus,ISqsMessageDispatcher, and DI configurationFiles Changed
Created (6 new files):
IntegrationManager.cs,SqsMessage.cs,SqsItemBase.cs,SqsMethodType.csApi/MessageModelStereotypeExtensions.cs,FactoryExtensions/MetadataLoaderExtension.csModified (5 files):
Intent.Modules.Integration.IaC.Shared.AwsSqs.projitems- Added file referencesIntent.Modules.Aws.Sqs.csproj- Imported shared projectIntent.Aws.Sqs.imodspec- Registered factory extensionTemplates/SqsConfiguration/SqsConfigurationTemplatePartial.cs- Implemented metadata-driven approachREADME.md- Added metadata support documentationBuild Status
✅ Builds successfully (0 errors, 21 nullable reference warnings)
✅ Module packages successfully (39KB
.imodfile generated)✅ All templates compile without errors
✅ Ready for integration testing
Usage Example
With this implementation, developers can:
AWS SQSstereotype to customize queue namesThe generated
SqsConfiguration.ConfigureSqs()method includes all publisher options, subscription options, and handler registrations automatically derived from the Intent Architect models.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.