Skip to content

Commit e25ee80

Browse files
CLOUDP-368428-Stream-Processor Internal Review
1 parent a0573da commit e25ee80

12 files changed

Lines changed: 14 additions & 11 deletions

cfn-resources/stream-processor/mongodb-atlas-streamprocessor.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
},
139139
"delete": {
140140
"permissions": ["secretsmanager:GetSecretValue"]
141+
},
142+
"list": {
143+
"permissions": ["secretsmanager:GetSecretValue"]
141144
}
142145
},
143146
"documentationUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/blob/master/cfn-resources/stream-processor/README.md",

cfn-resources/stream-processor/test/inputs_1_create.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"WorkspaceName": "",
55
"ProcessorName": "test-processor-1",
66
"Pipeline": "[{\"$source\": {\"connectionName\": \"sample_stream_solar\"}}, {\"$merge\": {\"into\": {\"connectionName\": \"SINK_CONNECTION_PLACEHOLDER\", \"db\": \"test\", \"coll\": \"output\"}}}]",
7-
"State": "CREATED"
7+
"DesiredState": "CREATED"
88
}

cfn-resources/stream-processor/test/inputs_1_update.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"WorkspaceName": "",
55
"ProcessorName": "test-processor-1",
66
"Pipeline": "[{\"$source\": {\"connectionName\": \"sample_stream_solar\"}}, {\"$merge\": {\"into\": {\"connectionName\": \"SINK_CONNECTION_PLACEHOLDER\", \"db\": \"test\", \"coll\": \"output\"}}}]",
7-
"State": "CREATED"
7+
"DesiredState": "CREATED"
88
}

cfn-resources/stream-processor/test/inputs_2_create.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"WorkspaceName": "",
55
"ProcessorName": "test-processor-2",
66
"Pipeline": "[{\"$source\": {\"connectionName\": \"sample_stream_solar\"}}, {\"$merge\": {\"into\": {\"connectionName\": \"SINK_CONNECTION_PLACEHOLDER\", \"db\": \"test\", \"coll\": \"output\"}}}]",
7-
"State": "STARTED",
7+
"DesiredState": "STARTED",
88
"Timeouts": {
99
"Create": "25m"
1010
},

cfn-resources/stream-processor/test/inputs_2_update.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"WorkspaceName": "",
55
"ProcessorName": "test-processor-2",
66
"Pipeline": "[{\"$source\": {\"connectionName\": \"sample_stream_solar\"}}, {\"$merge\": {\"into\": {\"connectionName\": \"SINK_CONNECTION_PLACEHOLDER\", \"db\": \"test\", \"coll\": \"output\"}}}]",
7-
"State": "STOPPED"
7+
"DesiredState": "STOPPED"
88
}

cfn-resources/stream-processor/test/inputs_3_create.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"InstanceName": "",
66
"ProcessorName": "test-processor-3",
77
"Pipeline": "[{\"$source\": {\"connectionName\": \"CONNECTION_NAME_PLACEHOLDER\"}}, {\"$merge\": {\"into\": {\"connectionName\": \"CONNECTION_NAME_PLACEHOLDER\", \"db\": \"test\", \"coll\": \"output\"}}}]",
8-
"State": "CREATED",
8+
"DesiredState": "CREATED",
99
"Options": {
1010
"Dlq": {
1111
"Coll": "dlq-collection",

cfn-resources/stream-processor/test/inputs_3_update.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"InstanceName": "",
66
"ProcessorName": "test-processor-3",
77
"Pipeline": "[{\"$source\": {\"connectionName\": \"CONNECTION_NAME_PLACEHOLDER\"}}, {\"$merge\": {\"into\": {\"connectionName\": \"CONNECTION_NAME_PLACEHOLDER\", \"db\": \"test\", \"coll\": \"output\"}}}]",
8-
"State": "CREATED",
8+
"DesiredState": "CREATED",
99
"Options": {
1010
"Dlq": {
1111
"Coll": "dlq-collection-updated",

cfn-resources/stream-processor/test/inputs_4_create.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"InstanceName": "",
66
"ProcessorName": "test-processor-4-kafka-to-cluster",
77
"Pipeline": "[{\"$source\": {\"connectionName\": \"KAFKA_SOURCE_CONNECTION_PLACEHOLDER\", \"topic\": \"random_topic\"}}, {\"$emit\": {\"connectionName\": \"CLUSTER_SINK_CONNECTION_PLACEHOLDER\", \"db\": \"kafka\", \"coll\": \"kafka_messages\", \"timeseries\": {\"timeField\": \"ts\"}}}]",
8-
"State": "CREATED"
8+
"DesiredState": "CREATED"
99
}

cfn-resources/stream-processor/test/inputs_4_update.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"InstanceName": "",
66
"ProcessorName": "test-processor-4-kafka-to-cluster",
77
"Pipeline": "[{\"$source\": {\"connectionName\": \"KAFKA_SOURCE_CONNECTION_PLACEHOLDER\", \"topic\": \"random_topic\"}}, {\"$emit\": {\"connectionName\": \"CLUSTER_SINK_CONNECTION_PLACEHOLDER\", \"db\": \"kafka\", \"coll\": \"kafka_messages_updated\", \"timeseries\": {\"timeField\": \"ts\"}}}]",
8-
"State": "CREATED"
8+
"DesiredState": "CREATED"
99
}

cfn-resources/stream-processor/test/inputs_5_create.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"InstanceName": "",
66
"ProcessorName": "test-processor-5-cluster-to-kafka",
77
"Pipeline": "[{\"$source\": {\"connectionName\": \"CLUSTER_SOURCE_CONNECTION_PLACEHOLDER\"}}, {\"$emit\": {\"connectionName\": \"KAFKA_SINK_CONNECTION_PLACEHOLDER\", \"topic\": \"random_topic\"}}]",
8-
"State": "CREATED"
8+
"DesiredState": "CREATED"
99
}

0 commit comments

Comments
 (0)