Blueprints

Send an SMS message using AWS SNS based on a runtime-specific input

Source

yaml
id: send-sms
namespace: company.team

inputs:
  - id: sms_text
    type: STRING
    defaults: Hello from Kestra and AWS SNS!

tasks:
  - id: send_sms
    type: io.kestra.plugin.aws.sns.Publish
    region: "{{ secret('AWS_DEFAULT_REGION') }}"
    accessKeyId: "{{ secret('AWS_ACCESS_KEY_ID') }}"
    secretKeyId: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
    topicArn: arn:aws:sns:eu-central-1:123456789:kestra
    from:
      data: |
        {{ inputs.sms_text }}

About this blueprint

AWS Inputs

This flow sends an SMS message to a phone number using AWS SNS. The phone number must be registered when creating an AWS SNS topic. You can override the SMS message text at runtime by leveraging the input argument sms_text. This flow assumes AWS credentials stored as secrets AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION.

Publish

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra