Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 999 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 999 Bytes

Bluesky APOD Bot

sequenceDiagram
    participant Lambda as "AWS Lambda";
    participant EventBridge as "Amazon EventBridge";
    participant NASA_API as "NASA API";
    participant Bluesky as "Bluesky";
    participant CloudWatch as "AWS CloudWatch Logs";
    participant SNS as "AWS SNS (Alert)";
    participant S3 as "Amazon S3";

    EventBridge ->> Lambda: Trigger event
    Lambda ->> NASA_API: Retrieve APOD
    NASA_API -->> Lambda: APOD
    alt Successful retrieval
        Lambda ->> Bluesky: Post APOD
        Bluesky -->> Lambda: Success
        Lambda ->> CloudWatch: Log success
    else Retrieval failure
        Lambda ->> CloudWatch: Log failure
    end

    CloudWatch -->> Lambda: Logging result

    alt Successful posting
        Lambda ->> CloudWatch: Log success
        Lambda ->> S3: Update file with rkey and status
        S3 -->> Lambda: Success
    else Posting failure
        Lambda ->> SNS: Send alert
        SNS ->> CloudWatch: Log alert
    end
Loading