From 9ccd8049c253feed41b3145c8bd6bd7a43fc0833 Mon Sep 17 00:00:00 2001 From: Eric Hammond Date: Sun, 5 Jan 2025 18:22:53 -0800 Subject: [PATCH] add demo source --- .gitignore | 1 + .../abc-demo-aws-lambda-20250105-142722.cast | 578 ++++++++++++++++++ 2 files changed, 579 insertions(+) create mode 100644 demos/abc-demo-aws-lambda-20250105-142722.cast diff --git a/.gitignore b/.gitignore index 658df84..aa1e34c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +work/ .next/ next-env.d.ts node_modules/ diff --git a/demos/abc-demo-aws-lambda-20250105-142722.cast b/demos/abc-demo-aws-lambda-20250105-142722.cast new file mode 100644 index 0000000..de2d87f --- /dev/null +++ b/demos/abc-demo-aws-lambda-20250105-142722.cast @@ -0,0 +1,578 @@ +{"version": 2, "width": 80, "height": 24, "timestamp": 1736116043, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}} +[0.066234, "o", "~/tmp$ "] +[3.038303, "o", "a"] +[3.225478, "o", "b"] +[3.312383, "o", "c"] +[3.463059, "o", " "] +[3.608111, "o", "l"] +[3.656693, "o", "i"] +[3.730962, "o", "s"] +[3.821435, "o", "t"] +[3.839757, "o", " "] +[3.94726, "o", "m"] +[4.225308, "o", "y"] +[4.289996, "o", " "] +[4.602261, "o", "l"] +[4.613193, "o", "a"] +[4.703109, "o", "m"] +[4.81121, "o", "b"] +[4.953109, "o", "d"] +[5.088577, "o", "a"] +[5.15686, "o", " "] +[5.386808, "o", "f"] +[5.512055, "o", "u"] +[5.65102, "o", "n"] +[5.740006, "o", "c"] +[5.91412, "o", "ti"] +[5.946399, "o", "o"] +[6.008521, "o", "n"] +[6.148889, "o", "s"] +[7.184842, "o", ":"] +[7.218829, "o", " "] +[7.629011, "o", "n"] +[7.673036, "o", "a"] +[7.777271, "o", "m"] +[7.861557, "o", "e"] +[7.998108, "o", ","] +[8.08717, "o", " "] +[8.235204, "o", "l"] +[8.308497, "o", "a"] +[8.420271, "o", "n"] +[8.506997, "o", "g"] +[8.609179, "o", "u"] +[8.66182, "o", "a"] +[8.721364, "o", "g"] +[8.77685, "o", "e"] +[10.768097, "o", "\r\n"] +[13.233493, "o", "~/tmp$ aws lambda list-functions --query 'Functions[].[FunctionName,Runtime]' --output table"] +[15.879123, "o", "\r\n"] +[17.196748, "o", "--------------------------------------\r\n\u001b[0m\u001b[0m| ListFunctions |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+----------------------+-------------+\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m| \u001b[1m\u001b[34mtimercheck\u001b[0m | \u001b[1m\u001b[34mnodejs\u001b[0m |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m| \u001b[1m\u001b[34mtimercheck-dev\u001b[0m | \u001b[1m\u001b[34mpython3.6\u001b[0m |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m| \u001b[1m\u001b[34mtimercheck-redirect\u001b[0m | \u001b[1m\u001b[34mnodejs\u001b[0m |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+----------------------+-------------+\u001b[0m\u001b[0m\r\n\u001b[0m"] +[17.198098, "o", "\u001b[0m"] +[17.328442, "o", "~/tmp$ "] +[19.443915, "o", "a"] +[19.492017, "o", "w"] +[19.630507, "o", "s"] +[19.763216, "o", " "] +[19.858354, "o", "l"] +[19.962144, "o", "a"] +[20.015184, "o", "m"] +[20.403066, "o", "\b\b\b\b\b\b\b"] +[21.298356, "o", "\u001b[C\u001b[1@a\b"] +[21.436021, "o", "\u001b[1@b"] +[21.488073, "o", "\u001b[1@c"] +[21.62095, "o", "\u001b[1@ "] +[21.799987, "o", "\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C"] +[22.38964, "o", "b"] +[22.61006, "o", "d"] +[22.716931, "o", "a"] +[22.850019, "o", " "] +[23.038004, "o", "f"] +[23.13359, "o", "u"] +[23.276266, "o", "n"] +[23.335091, "o", "c"] +[23.496632, "o", "t"] +[23.525016, "o", "i"] +[23.544344, "o", "o"] +[23.593906, "o", "n"] +[23.754164, "o", " "] +[25.722324, "o", "t"] +[25.781543, "o", "i"] +[25.816208, "o", "m"] +[25.86146, "o", "e"] +[25.911646, "o", "r"] +[26.104522, "o", "c"] +[26.133654, "o", "h"] +[26.277365, "o", "e"] +[26.412093, "o", "c"] +[26.448863, "o", "k"] +[26.65617, "o", "-"] +[26.738656, "o", "d"] +[26.885249, "o", "e"] +[27.032187, "o", "v"] +[27.7932, "o", ":"] +[27.842051, "o", " "] +[28.008224, "o", "s"] +[28.066246, "o", "h"] +[28.098243, "o", "o"] +[28.179153, "o", "w"] +[28.242995, "o", " "] +[28.320169, "o", "m"] +[28.429112, "o", "e"] +[28.472139, "o", "m"] +[28.574063, "o", "o"] +[28.643023, "o", "r"] +[28.796779, "o", "y"] +[29.006237, "o", ","] +[29.047952, "o", " "] +[29.152369, "o", "t"] +[29.241409, "o", "i"] +[29.273605, "o", "m"] +[29.320993, "o", "e"] +[29.493886, "o", "o"] +[29.579418, "o", "u"] +[29.667569, "o", "t"] +[31.79093, "o", "\r\n"] +[34.341182, "o", "~/tmp$ aws lambda get-function-configuration --function-name timercheck-dev --query '[MemorySize,Timeout]' --output text"] +[37.695913, "o", "\r\n"] +[38.986614, "o", "128\t60\r\n"] +[39.117487, "o", "~/tmp$ "] +[42.398667, "o", "aws lambda get-function-configuration --function-name timercheck-dev --query '[MemorySize,Timeout]' --output text"] +[43.136693, "o", "\u001b[A\r\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[13Pbc aws lambda function timercheck-dev: show memory, timeout\r\n\r\u001b[K\u001b[A\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C"] +[44.030247, "o", " "] +[44.215926, "o", "-"] +[44.354354, "o", "-"] +[44.43165, "o", " "] +[44.599153, "o", "w"] +[44.665233, "o", "i"] +[44.791161, "o", "t"] +[44.805421, "o", "h"] +[44.891167, "o", " "] +[45.000234, "o", "l"] +[45.078233, "o", "a"] +[45.2409, "o", "b"] +[45.420737, "o", "e \r"] +[45.43815, "o", "l"] +[45.823949, "o", "s"] +[47.135865, "o", "\r\n"] +[50.23752, "o", "~/tmp$ aws lambda get-function-configuration --function-name timercheck-dev --query '{Memory: MemorySize, Timeout: Timeout}' --output table"] +[53.341017, "o", "\r\n"] +[54.654346, "o", "--------------------------\r\n\u001b[0m\u001b[0m|GetFunctionConfiguration|\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+----------+-------------+\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m| Memory | Timeout |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+----------+-------------+\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m| \u001b[1m\u001b[34m128\u001b[0m | \u001b[1m\u001b[34m60\u001b[0m |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+----------+-------------+\u001b[0m\u001b[0m\r\n\u001b[0m"] +[54.656159, "o", "\u001b[0m"] +[54.784724, "o", "~/tmp$ "] +[57.365671, "o", "\r\n"] +[57.36761, "o", "~/tmp$ "] +[59.167186, "o", "d"] +[59.270604, "o", "o"] +[59.355564, "o", "w"] +[59.429572, "o", "n"] +[59.510002, "o", "l"] +[59.6754, "o", "o"] +[59.721805, "o", "a"] +[59.823626, "o", "d"] +[59.921077, "o", " "] +[60.078084, "o", "a"] +[60.15826, "o", "n"] +[60.496378, "o", "\r\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C"] +[60.78334, "o", "\u001b[1@a"] +[60.907702, "o", "\u001b[1@b"] +[60.985002, "o", "\u001b[1@c"] +[61.076239, "o", "\u001b[1@ "] +[61.242128, "o", "\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C"] +[62.380071, "o", "d"] +[62.514155, "o", " "] +[62.775207, "o", "u"] +[62.912774, "o", "n"] +[62.990231, "o", "z"] +[63.144395, "o", "i"] +[63.168907, "o", "p"] +[63.177366, "o", "o"] +[63.226572, "o", " "] +[64.226778, "o", "\b\u001b[K"] +[64.355538, "o", "\b\u001b[K"] +[64.402133, "o", " "] +[65.957361, "o", "t"] +[66.032678, "o", "h"] +[66.055305, "o", "e"] +[66.152004, "o", " "] +[66.252979, "o", "c"] +[66.311768, "o", "o"] +[66.415912, "o", "d"] +[66.554327, "o", "e"] +[66.616228, "o", " "] +[66.772498, "o", "i"] +[66.798669, "o", "n"] +[66.870065, "o", " "] +[67.049083, "o", "l"] +[67.082098, "o", "a"] +[67.235031, "o", "m"] +[67.307396, "o", "b"] +[67.449708, "o", "d"] +[67.566039, "o", "a"] +[67.6695, "o", " "] +[67.796959, "o", "f"] +[67.894709, "o", "u"] +[68.023035, "o", "n"] +[68.092876, "o", "c"] +[68.228516, "o", "t"] +[68.261052, "o", "i"] +[68.279939, "o", "o"] +[68.328521, "o", "n"] +[68.412992, "o", " "] +[69.123195, "o", "t"] +[69.205995, "o", "i"] +[69.246892, "o", "m"] +[69.289047, "o", "e"] +[69.328997, "o", "r"] +[69.51421, "o", "c"] +[69.597154, "o", "h"] +[69.703206, "o", "e"] +[69.836107, "o", "c"] +[69.899307, "o", "k"] +[70.148767, "o", "-"] +[70.230738, "o", "d"] +[70.39586, "o", "e"] +[70.54006, "o", "v"] +[71.035135, "o", " "] +[72.234651, "o", "i"] +[72.265358, "o", "n"] +[72.356126, "o", "t"] +[72.434388, "o", "o"] +[72.550186, "o", " "] +[73.021589, "o", "."] +[73.08484, "o", "/ \r"] +[73.332714, "o", "c"] +[73.412085, "o", "o"] +[73.516242, "o", "d"] +[73.683647, "o", "e"] +[73.890461, "o", "-"] +[74.654761, "o", "Y"] +[74.880882, "o", "Y"] +[75.051877, "o", "Y"] +[75.202851, "o", "Y"] +[75.477235, "o", "M"] +[75.607695, "o", "M"] +[75.740102, "o", "D"] +[75.892217, "o", "D"] +[76.153614, "o", "/"] +[78.961808, "o", "\r\n"] +[82.96537, "o", "~/tmp$ mkdir -p \"./code-$(date +%Y%m%d)\" && aws lambda get-function --function-name timercheck-dev --query 'Code.Location' --output text | xargs curl -s -o lambda.zip && unzip -q lambda.zip -d \"./code-$(date +%Y%m%d)\" && rm lambda.zip"] +[89.750228, "o", "\r\n"] +[92.905681, "o", "~/tmp$ "] +[94.497838, "o", "\r\n"] +[94.500145, "o", "~/tmp$ "] +[94.722492, "o", "l"] +[94.793615, "o", "s"] +[95.257239, "o", "\r\n"] +[95.260153, "o", "\u001b[0m\u001b[0;92mcode-20250105\u001b[0m/\r\n"] +[95.261975, "o", "~/tmp$ "] +[98.015368, "o", "h"] +[98.075, "o", "e"] +[98.15665, "o", "a"] +[98.253953, "o", "d"] +[98.361668, "o", " "] +[98.575786, "o", "-"] +[99.165186, "o", "8"] +[99.588161, "o", " "] +[99.864245, "o", "c"] +[99.931734, "o", "o"] +[100.104777, "o", "d"] +[100.293445, "o", "e"] +[100.92475, "o", "-20250105/"] +[102.060576, "o", "a"] +[102.12112, "o", "p"] +[102.255502, "o", "p"] +[102.442713, "o", "."] +[102.670004, "o", "p"] +[102.749036, "o", "y"] +[104.538031, "o", "\r\n"] +[104.540743, "o", "from chalice import Chalice, Response\r\nimport time\r\nimport boto3\r\n\r\napp = Chalice(app_name='timercheck')\r\nhome_url = 'https://alestic.com/2015/07/timercheck-scheduled-events-monitoring/'\r\ntable_name = 'timer' #TBD: Convert to chalice environment variable\r\n\r\n"] +[104.542904, "o", "~/tmp$ "] +[109.061392, "o", "a"] +[109.226514, "o", "b"] +[109.265881, "o", "c"] +[109.401558, "o", " "] +[110.566822, "o", "l"] +[110.606352, "o", "i"] +[110.628575, "o", "s"] +[110.695691, "o", "t"] +[110.74888, "o", " "] +[110.903799, "o", "e"] +[111.023771, "o", "n"] +[111.136869, "o", "v"] +[111.234223, "o", "i"] +[111.366718, "o", "o"] +[111.381805, "o", "r"] +[112.331168, "o", "\b\u001b[K"] +[112.657132, "o", "\b\u001b[K"] +[112.795813, "o", "r"] +[112.891692, "o", "o"] +[112.928839, "o", "n"] +[113.084664, "o", "m"] +[113.158361, "o", "e"] +[113.235546, "o", "n"] +[113.307666, "o", "t"] +[113.415087, "o", " "] +[113.539407, "o", "v"] +[113.683161, "o", "a"] +[113.759924, "o", "r"] +[113.8515, "o", "i"] +[113.881052, "o", "a"] +[113.966036, "o", "b"] +[114.055316, "o", "l"] +[114.121591, "o", "e"] +[114.206936, "o", "s"] +[114.254653, "o", " "] +[114.911229, "o", "f"] +[114.96774, "o", "o"] +[115.057756, "o", "r"] +[115.10201, "o", " "] +[115.212197, "o", "l"] +[115.247527, "o", "a"] +[115.365101, "o", "m"] +[115.446033, "o", "b"] +[115.59996, "o", "d"] +[115.688133, "o", "a"] +[115.752844, "o", " "] +[116.409053, "o", "f"] +[116.506179, "o", "u"] +[116.64213, "o", "n"] +[116.688138, "o", "c"] +[116.85518, "o", "t"] +[116.8801, "o", "i"] +[116.891848, "o", "o"] +[116.942591, "o", "n"] +[117.040786, "o", " "] +[117.389735, "o", "t"] +[117.439882, "o", "i"] +[117.477444, "o", "m"] +[117.524567, "o", "e"] +[117.578749, "o", "r"] +[117.747154, "o", "c"] +[117.787258, "o", "h"] +[117.930172, "o", "e"] +[118.047532, "o", "c"] +[118.097735, "o", "k"] +[118.346522, "o", "-"] +[118.409637, "o", "d"] +[118.659991, "o", "v"] +[119.10232, "o", "\b\u001b[K"] +[119.133371, "o", "e"] +[119.26721, "o", "v"] +[120.517097, "o", "\r\n"] +[123.810918, "o", "~/tmp$ aws lambda get-function-configuration --function-name timercheck-dev --query 'Environment.Variables' --output table"] +[126.943371, "o", "\r\n"] +[128.285258, "o", "--------------------------\r\n\u001b[0m\u001b[0m|GetFunctionConfiguration|\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+-----------+------------+\u001b[0m\u001b[0m\r\n"] +[128.285718, "o", "\u001b[0m\u001b[0m| \u001b[1m\u001b[34mtable\u001b[0m | \u001b[1m\u001b[34mtimer\u001b[0m |\u001b[0m\u001b[0m\r\n\u001b[0m\u001b[0m+-----------+------------+\u001b[0m\u001b[0m\r\n"] +[128.28597, "o", "\u001b[0m"] +[128.288191, "o", "\u001b[0m"] +[128.4119, "o", "~/tmp$ "] +[132.298373, "o", "a"] +[132.418174, "o", "b"] +[132.485417, "o", "c"] +[132.629071, "o", " "] +[133.13438, "o", "t"] +[133.213181, "o", "a"] +[133.251012, "o", "i"] +[133.273999, "o", "l"] +[133.354896, "o", " "] +[133.906123, "o", "l"] +[134.109401, "o", "o"] +[134.171759, "o", "g"] +[134.262257, "o", "s"] +[134.388917, "o", " "] +[134.515629, "o", "f"] +[134.597741, "o", "o"] +[134.673856, "o", "r"] +[134.72695, "o", " "] +[134.838799, "o", "a"] +[134.922835, "o", "w"] +[135.07612, "o", "s"] +[135.13609, "o", " "] +[135.267581, "o", "l"] +[135.351811, "o", "a"] +[135.461633, "o", "m"] +[135.565755, "o", "b"] +[135.715956, "o", "d"] +[135.806, "o", "a"] +[135.893701, "o", " "] +[136.015656, "o", "f"] +[136.151166, "o", "u"] +[136.29017, "o", "n"] +[136.329909, "o", "c"] +[136.49416, "o", "t"] +[136.534014, "o", "i"] +[136.55298, "o", "o"] +[136.587021, "o", "n"] +[136.724899, "o", " "] +[137.692257, "o", "t"] +[137.734162, "o", "i"] +[137.769037, "o", "m"] +[137.809932, "o", "e"] +[137.867834, "o", "r"] +[138.040739, "o", "c"] +[138.081887, "o", "h"] +[138.217233, "o", "e"] +[138.344115, "o", "c"] +[138.447036, "o", "k"] +[138.763899, "o", "-"] +[138.828994, "o", "d"] +[139.001205, "o", "e"] +[139.133786, "o", "v"] +[139.487559, "o", "\r\n"] +[142.130078, "o", "~/tmp$ aws logs tail /aws/lambda/timercheck-dev --follow"] +[143.610911, "o", "\b\u001b[K"] +[143.927257, "o", "\b\u001b[K"] +[144.207401, "o", "\b\u001b[K"] +[144.485621, "o", "\b\u001b[K"] +[144.753625, "o", "\b\u001b[K"] +[144.996078, "o", "\b\u001b[K"] +[145.244649, "o", "\b\u001b[K"] +[145.500645, "o", "\b\u001b[K"] +[146.681559, "o", "|"] +[146.778172, "o", " "] +[147.172128, "o", "t"] +[147.263091, "o", "a"] +[147.347961, "o", "i"] +[147.368975, "o", "l"] +[147.440708, "o", " "] +[147.695936, "o", "-"] +[148.630086, "o", "3"] +[151.685437, "o", "\r\n"] +[157.698766, "o", "2025-01-05T22:29:51.100000+00:00 2025/01/05/[$LATEST]474b603cbda1437fafe9a3bad405daec START RequestId: 046de6e5-781f-41b6-8466-61a4db13dcc5 Version: $LATEST\r\n2025-01-05T22:29:51.144000+00:00 2025/01/05/[$LATEST]474b603cbda1437fafe9a3bad405daec END RequestId: 046de6e5-781f-41b6-8466-61a4db13dcc5\r\n2025-01-05T22:29:51.144000+00:00 2025/01/05/[$LATEST]474b603cbda1437fafe9a3bad405daec REPORT RequestId: 046de6e5-781f-41b6-8466-61a4db13dcc5\tDuration: 44.31 ms\tBilled Duration: 45 ms\tMemory Size: 128 MB\tMax Memory Used: 75 MB\r\n"] +[157.70027, "o", "~/tmp$ "] +[161.273838, "o", "\r\n"] +[161.275728, "o", "~/tmp$ "] +[163.493964, "o", "a"] +[163.655232, "o", "b"] +[163.721629, "o", "c"] +[163.83077, "o", " "] +[165.05007, "o", "u"] +[165.099218, "o", "s"] +[165.257864, "o", "i"] +[165.314912, "o", "n"] +[165.361548, "o", "g"] +[165.453695, "o", " "] +[165.600015, "o", "c"] +[165.647904, "o", "l"] +[165.813162, "o", "o"] +[165.866679, "o", "u"] +[165.981816, "o", "w"] +[166.27719, "o", "e"] +[166.754402, "o", "\b\u001b[K"] +[166.816172, "o", "w"] +[166.88994, "o", "a"] +[167.010185, "o", "t"] +[167.211631, "o", "c"] +[167.5486, "o", "\b\u001b[K"] +[167.662401, "o", "\b\u001b[K"] +[167.777974, "o", "\b\u001b[K"] +[167.905995, "o", "\b\u001b[K"] +[167.985067, "o", "\b\u001b[K"] +[168.14181, "o", "d"] +[168.322102, "o", "w"] +[168.452326, "o", "a"] +[168.562787, "o", "t"] +[168.720643, "o", "c"] +[168.800081, "o", "h"] +[168.869638, "o", " "] +[168.987321, "o", "m"] +[169.072015, "o", "e"] +[169.171768, "o", "t"] +[169.310035, "o", "r"] +[169.448066, "o", "i"] +[169.548052, "o", "c"] +[169.642389, "o", "s"] +[170.196783, "o", ","] +[170.245871, "o", " "] +[170.420771, "o", "h"] +[170.462702, "o", "o"] +[170.512619, "o", "w"] +[170.590138, "o", " "] +[170.667663, "o", "m"] +[170.751135, "o", "a"] +[170.820676, "o", "n"] +[170.987217, "o", "y"] +[171.041665, "o", " "] +[171.10611, "o", "t"] +[171.239876, "o", "ie"] +[171.270238, "o", "m"] +[171.41176, "o", "s"] +[171.507766, "o", " "] +[171.929177, "o", "\b\u001b[K"] +[172.044071, "o", "\b\u001b[K"] +[172.175616, "o", "\b\u001b[K"] +[172.611726, "o", "\b\u001b[K"] +[172.782672, "o", "m"] +[172.811443, "o", "e"] +[172.906897, "o", "s"] +[173.047528, "o", " "] +[173.196429, "o", "h"] +[173.222055, "o", "a"] +[173.290363, "o", "s"] +[173.351993, "o", " "] +[174.178017, "o", "l"] +[174.231618, "o", "a"] +[174.355849, "o", "m"] +[174.411375, "o", "b"] +[174.953041, "o", "d"] +[175.07843, "o", "a"] +[175.175329, "o", " "] +[175.312033, "o", "f"] +[175.422126, "o", "u"] +[175.569563, "o", "n"] +[175.60807, "o", "c"] +[175.744848, "o", "t"] +[175.800584, "o", "i"] +[175.811596, "o", "o"] +[175.853474, "o", "n"] +[175.946122, "o", " "] +[177.356491, "o", "t"] +[177.431629, "o", "i"] +[177.448861, "o", "m"] +[177.505131, "o", "e"] +[177.556945, "o", "r"] +[178.16186, "o", "c"] +[178.297, "o", "h"] +[178.403242, "o", "e \r"] +[178.541556, "o", "c"] +[178.599352, "o", "k"] +[178.759144, "o", "."] +[179.116961, "o", "\b\u001b[K"] +[179.299975, "o", "-"] +[179.353748, "o", "d"] +[179.529157, "o", "e"] +[179.647975, "o", "v"] +[179.86743, "o", " "] +[180.00156, "o", "b"] +[180.202768, "o", "e"] +[180.339693, "o", "e"] +[180.377061, "o", "n"] +[180.43773, "o", " "] +[180.634139, "o", "i"] +[180.743787, "o", "n"] +[180.880079, "o", "v"] +[181.00153, "o", "o"] +[181.150118, "o", "l"] +[181.26365, "o", "e"] +[181.418793, "o", "d"] +[181.736933, "o", "\b\u001b[K"] +[181.844545, "o", "\b\u001b[K"] +[181.963753, "o", "\b\u001b[K"] +[182.203004, "o", "k"] +[182.248009, "o", "e"] +[182.383806, "o", "d"] +[182.464017, "o", " "] +[182.56294, "o", "i"] +[182.606012, "o", "n"] +[182.667134, "o", " "] +[182.717608, "o", "t"] +[182.786075, "o", "h"] +[182.789639, "o", "e"] +[182.924896, "o", " "] +[183.189598, "o", "l"] +[183.223139, "o", "a"] +[183.263778, "o", "s"] +[183.33037, "o", "t"] +[183.421424, "o", " "] +[183.543181, "o", "w"] +[183.576255, "o", "e"] +[183.724144, "o", "e"] +[183.734863, "o", "k"] +[186.357551, "o", "\r\n"] +[190.196188, "o", "~/tmp$ aws cloudwatch get-metric-statistics --namespace AWS/Lambda --metric-name Invocations --dimensions Name=FunctionName,Value=timercheck-dev --start-time $(date -u -d '1 week ago' +\"%Y-%m-%dT%H:%M:%SZ\") --end-time $(date -u +\"%Y-%m-%dT%H:%M:%SZ\") --period 604800 --statistics Sum"] +[195.792104, "o", "\r\n"] +[197.353353, "o", "{\r\n \"Label\": \"Invocations\",\r\n \"Datapoints\": [\r\n {\r\n \"Timestamp\": \"2024-12-29T22:31:00+00:00\",\r\n \"Sum\": 3174892.0,\r\n \"Unit\": \"Count\"\r\n }\r\n ]\r\n}\r\n"] +[197.474332, "o", "~/tmp$ "] +[206.355707, "o", "abc aws log filter lambda function timercheck-dev, last minute of events, list eventId one per line\r\n"] +[209.778199, "o", "~/tmp$ aws logs filter-log-events --log-group-name /aws/lambda/timercheck-dev --start-time $(( $(date +%s) - 60 ))000 --query 'events[*].eventId' --output text | tr '\\t' '\\n'"] +[212.475477, "o", " "] +[212.64037, "o", "|"] +[212.648692, "o", " "] +[212.807563, "o", "w"] +[212.974726, "o", "c"] +[213.063565, "o", " "] +[213.12559, "o", "-"] +[213.339142, "o", "l"] +[213.810214, "o", "\r\n"] +[216.546178, "o", "918\r\n"] +[216.547864, "o", "~/tmp$ "]