Skip to content

My memo Wall

A collection of my tech notes

  • Home
  • AWS
    • Bitnami
    • Lambda
    • Serverless
    • Step Function
    • DynamoDB
    • Kinesis
    • Elastic Search
  • Language Specific
    • Python
    • Perl
    • C#
    • Java
    • Visual Basic
    • Node.js
  • Web
    • JQUERY
    • PHP
    • Apache
    • CSS
    • Demo
    • AJAX
    • HTML
  • Git
  • OS
    • Android
    • Windows
    • Linux
    • Shell Script
  • Database
    • Foxpro
    • Postgresql
    • MYSQL
    • SQL
    • snowflake
  • Open Source ERP
    • Dolibarr
    • OfBiz
  • EDI
  • Twilio
  • General
    • Bar Code
    • Domain
    • Email
    • G Suite
    • Slack
    • wiki

Category: AWS

SQS subscribes to SNS topic

September 4, 2023 Yvonne Lu AWS, Serverless

Resources: SNSTopic: Type: AWS::SNS::Topic Properties: TopicName: name KmsMasterKeyId: !ImportValue kms-key-id SQSQueue: Type: AWS::SQS::Queue SNSSubscription: Type: AWS::SNS::Subscription Properties: TopicArn: !Ref SNSTopicArn

Continue reading

Step function notes

September 1, 2023 Yvonne Lu AWS, Step Function

Use step function to delay sns { “StartAt”: “Delay”, “Comment”: “Publish to SNS with delay”, “States”: { “Delay”: { “Type”:

Continue reading

Lambda inserting into SQS using message timer

August 24, 2023 Yvonne Lu AWS, Lambda

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html#sendMessage-property const AWS = require(‘aws-sdk’); exports.handler = async (event, context) => { // Get the SQS client. const sqs =

Continue reading

Step function history event limitation

August 24, 2023 Yvonne Lu AWS, Step Function

One approach to avoid the 25k history event limit is to add a choice state in your loop that takes

Continue reading

Step function wait 10 seconds after current time

August 24, 2023 Yvonne Lu AWS

{ “StartAt”: “Wait”, “States”: { “Wait”: { “Type”: “Wait”, “Seconds”: { “Value”: { “Fn::Sub”: “${current_time} + 10” } }, “Next”:

Continue reading

Lambda executing step function nodejs example

August 24, 2023 Yvonne Lu AWS, Lambda

var aws = require(‘aws-sdk’) exports.handler = (event, context, callback) => { var params = { stateMachineArn: ‘arn:aws:states:us-east-1:1234567890:stateMachine:Helloworld’, input: JSON.stringify({}) };

Continue reading

Step function possible states

August 23, 2023 Yvonne Lu AWS

There are 7 possible states in a Step Function: Task: A Task state represents a single unit of work performed

Continue reading

Async Lambda example sending task succeeded status back to step function

August 23, 2023 Yvonne Lu AWS

const AWS = require(‘aws-sdk’); exports.handler = async (event, context) => { // Get the Step Functions client. const stepFunctions =

Continue reading

Lambda polling SQS nodejs example

August 23, 2023 Yvonne Lu AWS

const AWS = require(‘aws-sdk’); exports.handler = async (event, context) => { // Get the SQS client. const sqs = new

Continue reading

Lambda invoke step function nodejs example

August 21, 2023 Yvonne Lu AWS

const AWS = require(‘aws-sdk’); exports.handler = async (event, context) => { // Get the Step Functions client. const stepFunctions =

Continue reading

Posts pagination

«Previous Posts 1 2 3 4 5 6 … 9 Next Posts»

Recent Posts

  • AWS Bedrock
  • Dynatrace links
  • Easy LogIn
  • Typescript notes
  • AWS Connect Metrics

Archives

  • May 2025
  • February 2025
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • June 2022
  • May 2022
  • April 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • May 2018
  • April 2018
  • November 2017
  • May 2017
  • April 2017
  • February 2017
  • January 2017
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • April 2014
WordPress Theme: Tortuga by ThemeZee.