Skip to content

Instantly share code, notes, and snippets.

@quiver
Last active May 8, 2016 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quiver/ec4de1f4eec1ee1907397137f863247e to your computer and use it in GitHub Desktop.
Save quiver/ec4de1f4eec1ee1907397137f863247e to your computer and use it in GitHub Desktop.
AWS Kinesis Stream Status Diagram created with Graphviz
// $ dot -Tpng kinesis-stream-state-diagram.dot -o kinesis-stream-state-diagram.png
digraph kinesis_stream_status {
labelloc="t";
label="AWS Kinesis Streams : Stream State Diagram";
CreateStream[shape=box];
DeleteStream[shape=box];
MergeShards[shape=box];
SplitShards[shape=box];
IncreaseStreamRetentionPeriod[shape=box];
DecreaseStreamRetentionPeriod[shape=box];
EnableEnhancedMonitoring[shape=box];
DisableEnhancedMonitoring[shape=box];
ACTIVE[style=filled,color="/accent3/1"];
CREATING[style=filled,color="/accent3/2"];
UPDATING[style=filled,color="/accent3/2"];
DELETING[style=filled,color="/accent3/3"];
ResourceNotFoundException[shape=plaintext];
CreateStream -> CREATING -> ACTIVE;
ACTIVE -> DeleteStream -> DELETING -> ResourceNotFoundException;
ACTIVE -> MergeShards -> UPDATING -> ACTIVE;
ACTIVE -> SplitShards -> UPDATING -> ACTIVE;
ACTIVE -> EnableEnhancedMonitoring -> UPDATING -> ACTIVE;
ACTIVE -> DisableEnhancedMonitoring -> UPDATING -> ACTIVE;
ACTIVE -> IncreaseStreamRetentionPeriod -> UPDATING -> ACTIVE;
ACTIVE -> DecreaseStreamRetentionPeriod -> UPDATING -> ACTIVE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment