aws-iot-sqs
| Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
| Language | Package |
|---|---|
|
|
|
|
|
|
|
|
|
Overview
This AWS Solutions Construct implements an AWS IoT MQTT topic rule and an AWS SQS Queue pattern.
Here is a minimal deployable pattern definition:
Example
Pattern Construct Props
| Name | Type | Description |
|---|---|---|
|
iotTopicRuleProps |
User provided CfnTopicRuleProps to override the defaults |
|
|
existingQueueObj? |
Existing instance of SQS queue object, providing both this and
|
|
|
queueProps? |
Optional - user provided properties to override the default properties for the SQS queue. Providing both this and |
|
|
deadLetterQueueProps? |
Optional user provided properties for the dead letter queue. |
|
|
deployDeadLetterQueue? |
|
Whether to deploy a secondary queue
to be used as a dead letter queue. Default |
|
maxReceiveCount? |
|
The number of times a message can be
unsuccessfully dequeued before being moved to the dead-letter queue.
Required field if |
|
enableEncryptionWithCustomerManagedKey? |
|
If no key is provided, this flag determines whether the queue is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: queueProps.encryptionMasterKey, encryptionKey or encryptionKeyProps. |
|
encryptionKey? |
An optional, imported encryption key to encrypt the SQS Queue with. |
|
|
encryptionKeyProps? |
Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SQS queue with. |
Pattern Properties
| Name | Type | Description |
|---|---|---|
|
encryptionKey? |
Returns an instance of |
|
|
iotActionsRole |
Returns an instance of |
|
|
sqsQueue |
Returns an instance of |
|
|
deadLetterQueue? |
Returns an instance of the dead-letter SQS queue created by the pattern. |
|
|
iotTopicRule |
Returns an instance of |
Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
Amazon IoT Rule
-
Configure an IoT Rule to send messages to the SQS Queue
Amazon IAM Role
-
Configure least privilege access IAM role for Amazon IoT to be able to publish messages to the SQS Queue
Amazon SQS Queue
-
Deploy a dead-letter queue for the source queue.
-
Enable server-side encryption for the source queue using a customer-managed AWS KMS key.
-
Enforce encryption of data in transit.
Architecture
Github
Go to the Github repo