Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 08b77af

Browse files
committed
Documentation updates
1 parent d754834 commit 08b77af

File tree

4 files changed

+44
-44
lines changed

4 files changed

+44
-44
lines changed

pipelines/event-replay-pipeline/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
## SNS Fork Message Replay
1+
## SNS Fork: Event Replay Pipeline
22

3-
This Serverless application provides an SNS Fork processing pipeline that saves topic messages to a replay buffer SQS queue. In a disaster recovery scenario, messages from up to 14 days ago can be replayed back to another processing pipeline's SQS queue.
3+
This Serverless application provides an SNS Fork processing pipeline that saves SNS topic events to a replay buffer SQS queue. In a disaster recovery scenario, events from up to 14 days ago can be replayed back to another processing pipeline's SQS queue.
44

55
## Architecture
66

7-
![SNS Fork Message Replay Architecture](https://github.com/aws-samples/aws-serverless-sns-fork-pattern/raw/master/message-replay/images/message-replay-architecture.png)
7+
![SNS Fork Event Replay Pipeline Architecture](https://github.com/aws-samples/aws-serverless-sns-fork-pattern/raw/master/pipelines/event-replay-pipeline/images/message-replay-architecture.png)
88

99
1. An Amazon SQS queue is subscribed to the given SNS Topic ARN with an optional subscription filter policy.
1010
1. An AWS Lambda function is mapped to the SQS queue, but the event source is initially disabled.
11-
1. In a disaster scenario, an operator manually enables the Lambda event source mapping and the AWS Lambda function forwards the messages from the replay buffer to the given destination SQS queue.
11+
1. In a disaster scenario, an operator manually enables the Lambda event source mapping and the AWS Lambda function forwards the events from the replay buffer to the given destination SQS queue.
1212

1313
## Installation
1414

@@ -22,28 +22,28 @@ This app is meant to be used as part of a larger application, so the recommended
2222
ApplicationId: TODO
2323
SemanticVersion: 1.0.0
2424
Parameters:
25-
# SNS Topic ARN whose messages should be backed up to S3.
26-
SNSTopicArn: !Ref MessageTopic
27-
# Name of destination SQS Queue where replay messages should be sent in a disaster recovery scenario. The app assumes the queue
25+
# SNS Topic ARN whose events should be backed up to S3.
26+
SNSTopicArn: !Ref EventTopic
27+
# Name of destination SQS Queue where replay events should be sent in a disaster recovery scenario. The app assumes the queue
2828
# is in the same account and region as this app.
2929
DestinationSQSQueueName: !GetAtt OtherPipelineQueue.QueueName
30-
# Retention period in seconds for the replay buffer SQS queue. This controls how long messages will be stored in the replay buffer.
30+
# Retention period in seconds for the replay buffer SQS queue. This controls how long events will be stored in the replay buffer.
3131
#ReplayBufferRetentionPeriodInSeconds: 1209600 # Uncomment to override default value
3232
```
3333

34-
Alternatively, you can deploy the application into your account manually via the [sns-fork-message-replay SAR page](TODO).
34+
Alternatively, you can deploy the application into your account manually via the [sns-fork-event-replay-pipeline SAR page](TODO).
3535

3636
### Parameters
3737

38-
1. `SNSTopicArn` (required) - SNS Topic ARN whose messages should be backuped up to S3.
39-
1. `DestinationSQSQueueName` (required) - Name of destination SQS Queue where replay messages should be sent in a disaster recovery scenario. The app assumes the queue is in the same account and region as this app.
40-
1. `SubscriptionFilterPolicy` (optional) - SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for messages processed by this app. See [the documentation](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for details. The default behavior is to use no subscription filter policy so the app will backup all messages sent to the SNS topic.
41-
1. `ReplayBufferRetentionPeriodInSeconds` (optional) - Retention period in seconds for the replay buffer SQS queue. This controls how long messages will be stored in the replay buffer. If not specified, the default value of `1209600` (14 days) is used.
38+
1. `SNSTopicArn` (required) - SNS Topic ARN whose events should be backed up to S3.
39+
1. `DestinationSQSQueueName` (required) - Name of destination SQS Queue where replay events should be sent in a disaster recovery scenario. The app assumes the queue is in the same account and region as this app.
40+
1. `SubscriptionFilterPolicy` (optional) - SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for events processed by this app. See [the documentation](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for details. The default behavior is to use no subscription filter policy so the app will backup all messages sent to the SNS topic.
41+
1. `ReplayBufferRetentionPeriodInSeconds` (optional) - Retention period in seconds for the replay buffer SQS queue. This controls how long events will be stored in the replay buffer. If not specified, the default value of `1209600` (14 days) is used.
4242

4343
### Outputs
4444

45-
1. `ReplayMessagesFunctionName` - Replay messages Lambda function name.
46-
1. `ReplayMessagesFunctionArn` - Replay messages Lambda function ARN.
45+
1. `ReplayMessagesFunctionName` - Replay events Lambda function name.
46+
1. `ReplayMessagesFunctionArn` - Replay events Lambda function ARN.
4747
1. `ReplayMessagesEventSourceMappingId` - Id of event source mapping of Replay buffer SQS queue to ReplayMessages Lambda function.
4848

4949
## License Summary

pipelines/event-search-analytics-pipeline/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
## SNS Fork Search and Analytics
1+
## SNS Fork: Event Search and Analytics Pipeline
22

3-
This Serverless application provides an SNS Fork processing pipeline that saves topic messages to an Amazon Elasticsearch Service cluster for searching and analytics.
3+
This Serverless application provides an SNS Fork processing pipeline that saves topic events to an Amazon Elasticsearch Service cluster for searching and analytics.
44

55
## Architecture
66

77
![SNS Fork Search and Analytics Architecture](https://github.com/aws-samples/aws-serverless-sns-fork-pattern/raw/master/search-analytics/images/search-analytics-architecture.png)
88

99
1. An Amazon SQS queue is subscribed to the given SNS Topic ARN with an optional subscription filter policy.
10-
1. An AWS Lambda function reads messages from the SQS queue and publishes them to an Amazon Kinesis Data Firehose Delivery Stream, which saves them to the given Amazon Elasticsearch Service Domain.
11-
1. If for some reason Kinesis Data Firehose is not able to write messages to the Amazon Elasticsearch Service Domain, the failed messages are written to a backup Amazon S3 bucket.
10+
1. An AWS Lambda function reads events from the SQS queue and publishes them to an Amazon Kinesis Data Firehose Delivery Stream, which saves them to the given Amazon Elasticsearch Service Domain.
11+
1. If for some reason Kinesis Data Firehose is not able to write events to the Amazon Elasticsearch Service Domain, the failed events are written to a backup Amazon S3 bucket.
1212

1313
**Note:** The app does not create an Amazon Elasticsearch Service cluster as part of the app since Amazon ES Domains have many configuration options and users commonly want to use a single cluster across many pipelines to save cost and perform more advanced queries.
1414

@@ -24,8 +24,8 @@ This app is meant to be used as part of a larger application, so the recommended
2424
ApplicationId: TODO
2525
SemanticVersion: 1.0.0
2626
Parameters:
27-
# SNS Topic ARN whose messages should be backed up to S3.
28-
SNSTopicArn: !Ref MessageTopic
27+
# SNS Topic ARN whose events should be backed up to S3.
28+
SNSTopicArn: !Ref EventTopic
2929
# ARN of the Elasticsearch Domain to write to.
3030
ElasticsearchDomainArn: !GetAtt MyElasticSearchCluster.Arn
3131
# Elasticsearch index name to write to.
@@ -34,10 +34,10 @@ This app is meant to be used as part of a larger application, so the recommended
3434
ElasticsearchTypeName: PROVIDE-VALUE
3535
# The frequency of Elasticsearch index rotation.
3636
#ElasticsearchIndexRotationPeriod: NoRotation # Uncomment to override default value
37-
# Number of seconds to retry if messages cannot be written to Elasticsearch index.
37+
# Number of seconds to retry if events cannot be written to Elasticsearch index.
3838
#RetryDurationInSeconds: 300 # Uncomment to override default value
3939
# SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering
40-
# for messages processed by this app. See https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html for details.
40+
# for events processed by this app. See https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html for details.
4141
#SubscriptionFilterPolicy: '' # Uncomment to override default value
4242
# Prefix used for S3 backup files
4343
#BackupPrefix: backup/ # Uncomment to override default value
@@ -49,20 +49,20 @@ Alternatively, you can deploy the application into your account manually via the
4949

5050
### Parameters
5151

52-
1. `SNSTopicArn` (required) - SNS Topic ARN whose messages should be backuped up to S3.
52+
1. `SNSTopicArn` (required) - SNS Topic ARN whose events should be backed up to S3.
5353
1. `ElasticsearchDomainArn` (required) - ARN of the Elasticsearch Domain to write to.
5454
1. `ElasticsearchIndexName` (required) - Elasticsearch index name to write to.
5555
1. `ElasticsearchTypeName` (required) - The Elasticsearch type name that Amazon ES adds to documents when indexing data.
56-
1. `SubscriptionFilterPolicy` (optional) - SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for messages processed by this app. See [the documentation](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for details. The default behavior is to use no subscription filter policy so the app will backup all messages sent to the SNS topic.
56+
1. `SubscriptionFilterPolicy` (optional) - SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for events processed by this app. See [the documentation](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for details. The default behavior is to use no subscription filter policy so the app will backup all events sent to the SNS topic.
5757
1. `ElasticsearchIndexRotationPeriod` (optional) - The frequency of Elasticsearch index rotation. See [the documentation](https://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-index-rotation) for details. If not specified, the default value of `NoRotation` is used.
58-
1. `RetryDurationInSeconds` (optional) - Number of seconds to retry if messages cannot be written to Elasticsearch index. Messages that fail to get written to ElasticSearch are written to an S3 backup bucket created by the app. See [the documentation](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ElasticsearchRetryOptions.html) for details. If not specified, the default value of 300 seconds (5 minutes) is used.
59-
1. `BackupPrefix` (optional) - A prefix that Kinesis Data Firehose adds to the files that it delivers to the Amazon S3 bucket (only used for messages that cannot be delivered to the Elasticsearch cluster). If not specified, the default value of `backup/` is used.
60-
1. `BackupCompressionFormat` (optional) - The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket (only used for messages that cannot be delivered to the Elasticsearch cluster). For valid values, see the `CompressionFormat` content for the [S3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_S3DestinationConfiguration.html) data type in the *Amazon Kinesis Data Firehose API Reference*.
58+
1. `RetryDurationInSeconds` (optional) - Number of seconds to retry if events cannot be written to Elasticsearch index. Events that fail to get written to ElasticSearch are written to an S3 backup bucket created by the app. See [the documentation](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ElasticsearchRetryOptions.html) for details. If not specified, the default value of 300 seconds (5 minutes) is used.
59+
1. `BackupPrefix` (optional) - A prefix that Kinesis Data Firehose adds to the files that it delivers to the Amazon S3 bucket (only used for events that cannot be delivered to the Elasticsearch cluster). If not specified, the default value of `backup/` is used.
60+
1. `BackupCompressionFormat` (optional) - The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket (only used for events that cannot be delivered to the Elasticsearch cluster). For valid values, see the `CompressionFormat` content for the [S3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_S3DestinationConfiguration.html) data type in the *Amazon Kinesis Data Firehose API Reference*.
6161

6262
### Outputs
6363

64-
1. `BackupBucketName` - Failed messages backup bucket name.
65-
1. `BackupBucketArn` - Failed messages backup bucket ARN.
64+
1. `BackupBucketName` - Failed events backup bucket name.
65+
1. `BackupBucketArn` - Failed events backup bucket ARN.
6666

6767
## License Summary
6868

pipelines/event-search-analytics-pipeline/template.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
AWSTemplateFormatVersion: 2010-09-09
22
Transform: AWS::Serverless-2016-10-31
33
Description: >
4-
This app forwards messages from the given SNS topic to the given Elasticsearch domain using Kinesis Firehose.
4+
This app forwards events from the given SNS topic to the given Elasticsearch domain using Kinesis Firehose.
55
66
Parameters:
77
SNSTopicArn:
8-
Description: SNS Topic ARN whose messages should be sent to Elasticsearch.
8+
Description: SNS Topic ARN whose events should be sent to Elasticsearch.
99
Type: String
1010
ElasticsearchDomainArn:
1111
Description: ARN of the Elasticsearch Domain to write to.
@@ -18,7 +18,7 @@ Parameters:
1818
Type: String
1919
SubscriptionFilterPolicy:
2020
Description: >
21-
SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for messages
21+
SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for events
2222
processed by this app. See https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html for details.
2323
Type: String
2424
Default: ''
@@ -27,17 +27,17 @@ Parameters:
2727
Type: String
2828
Default: NoRotation
2929
RetryDurationInSeconds:
30-
Description: Number of seconds to retry if messages cannot be written to Elasticsearch index.
30+
Description: Number of seconds to retry if events cannot be written to Elasticsearch index.
3131
Type: Number
3232
MinValue: 0
3333
MaxValue: 7200
3434
Default: 300
3535
BackupPrefix:
36-
Description: Prefix used for S3 backup files (messages are saved to S3 if they can't be written to the Elasticsearch cluster).
36+
Description: Prefix used for S3 backup files (events are saved to S3 if they can't be written to the Elasticsearch cluster).
3737
Type: String
3838
Default: 'backup/'
3939
BackupCompressionFormat:
40-
Description: Compression format for S3 backup files (messages are saved to S3 if they can't be written to the Elasticsearch cluster).
40+
Description: Compression format for S3 backup files (events are saved to S3 if they can't be written to the Elasticsearch cluster).
4141
Type: String
4242
AllowedValues:
4343
- UNCOMPRESSED

pipelines/event-store-backup-pipeline/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
## SNS Fork Storage and Backup
1+
## SNS Fork: Storage and Backup Pipeline
22

3-
This Serverless application provides an SNS Fork processing pipeline that saves topic messages to an Amazon S3 bucket for use as backups or other purposes, e.g., to query with Amazon Athena.
3+
This Serverless application provides an SNS Fork processing pipeline that saves topic events to an Amazon S3 bucket for use as backups or other purposes, e.g., to query with Amazon Athena.
44

55
## Architecture
66

77
![SNS Fork Backup and Storage Architecture](https://github.com/aws-samples/aws-serverless-sns-fork-pattern/raw/master/storage-backup/images/storage-backup-architecture.png)
88

99
1. An Amazon SQS queue is subscribed to the given SNS Topic ARN with an optional subscription filter policy.
10-
1. An AWS Lambda function reads messages from the SQS queue and publishes them to an Amazon Kinesis Data Firehose Delivery Stream, which saves them to an Amazon S3 bucket.
10+
1. An AWS Lambda function reads events from the SQS queue and publishes them to an Amazon Kinesis Data Firehose Delivery Stream, which saves them to an Amazon S3 bucket.
1111

1212
## Installation
1313

@@ -21,10 +21,10 @@ This app is meant to be used as part of a larger application, so the recommended
2121
ApplicationId: TODO
2222
SemanticVersion: 1.0.0
2323
Parameters:
24-
# SNS Topic ARN whose messages should be backed up to S3.
25-
SNSTopicArn: !Ref MessageTopic
24+
# SNS Topic ARN whose events should be backed up to S3.
25+
SNSTopicArn: !Ref EventTopic
2626
# SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering
27-
# for messages processed by this app. See https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html for details.
27+
# for events processed by this app. See https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html for details.
2828
#SubscriptionFilterPolicy: '' # Uncomment to override default value
2929
# Prefix used for S3 backup files
3030
#BackupPrefix: backup/ # Uncomment to override default value
@@ -36,8 +36,8 @@ Alternatively, you can deploy the application into your account manually via the
3636

3737
### Parameters
3838

39-
1. `SNSTopicArn` (required) - SNS Topic ARN whose messages should be backuped up to S3.
40-
1. `SubscriptionFilterPolicy` (optional) - SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for messages processed by this app. See [the documentation](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for details. The default behavior is to use no subscription filter policy so the app will backup all messages sent to the SNS topic.
39+
1. `SNSTopicArn` (required) - SNS Topic ARN whose events should be backed up to S3.
40+
1. `SubscriptionFilterPolicy` (optional) - SNS Topic Subscription FilterPolicy as a JSON string. This optional parameter allows you to configure message filtering for events processed by this app. See [the documentation](https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html) for details. The default behavior is to use no subscription filter policy so the app will backup all events sent to the SNS topic.
4141
1. `BackupPrefix` (optional) - A prefix that Kinesis Data Firehose adds to the files that it delivers to the Amazon S3 bucket. If not specified, the default value of `backup/` is used.
4242
1. `BackupCompressionFormat` (optional) - The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. For valid values, see the `CompressionFormat` content for the [S3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_S3DestinationConfiguration.html) data type in the *Amazon Kinesis Data Firehose API Reference*.
4343

0 commit comments

Comments
 (0)