🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 27, 2026

How to Send Gravity Forms Submissions to AWS (SNS, SQS, EventBridge, Lambda)

GravityExtra
How to Send Gravity Forms Submissions to AWS (SNS, SQS, EventBridge, Lambda)

A Gravity Forms submission is often the start of a longer process: a ticket to open, an order to fulfil, a record to store, a workflow to kick off. If your business runs on Amazon Web Services, the fastest way to start that process is to hand the submission straight to AWS. This tutorial shows how to do it with the Gravity Forms AWS Messaging Premium Add-on, which publishes to SNS, sends to SQS, puts an EventBridge event, or invokes a Lambda function the moment a form is submitted, using your own AWS account.

Why send a form submission to AWS

An email notification tells a person. A message to AWS tells a system. When a submission becomes an SNS notification, an SQS job, an EventBridge event or a Lambda call, the rest of your architecture can react: fan the news out to several subscribers, queue work for a worker to pick up later, route an event through rules to other services, or run code on the spot. The form becomes the front door to everything you already built on AWS.

Doing this from your own AWS account keeps your data, your permissions, your logs and your costs in one place. The add-on signs every request with AWS Signature Version 4 and sends it only to the endpoint of your region, so nothing passes through a third party.

Choosing the right AWS service

The four actions solve four different problems, and a form can use any mix of them. Pick by what should happen next.

  • SNS when several things must hear about the submission at once. A topic can fan one message out to email subscribers, queues, functions and HTTPS endpoints. Use it for notifications and broadcasts.
  • SQS when the work can wait a moment and must not be lost. The message sits in the queue until a worker is ready, which smooths out spikes and protects a slow downstream system. Use it for jobs and buffering.
  • EventBridge when the submission is an event that many rules might care about. One event can start a workflow, write to a store and call an API destination, chosen by the rules you set on the bus. Use it as the routing hub.
  • Lambda when custom code should run right away. The function gets the payload and can enrich the data, write to a database or call a private system. Use it when the logic is yours.

Standard topics and queues are the default and the cheapest. FIFO topics and queues (their names end in .fifo) keep the exact order of events and never record the same one twice; the add-on sets the deduplication id for you, so a retry after a network blip is always safe. Choose FIFO when an action such as charging or shipping must never be duplicated.

What you need

  • An AWS account with the topic, queue, function or event bus you want to reach, all in one region.
  • An IAM user with an access key and secret key, and permission for the actions you use: sns:Publish, sqs:SendMessage, events:PutEvents or lambda:InvokeFunction.
  • Gravity Forms 2.5 or newer and the Gravity Forms AWS Messaging Premium Add-on.
  • A GravityExtra licence key.

Step 1: connect AWS once

Install the add-on and open Forms → Settings → AWS Messaging. Activate your licence, then enter the region, the access key ID and the secret access key, choose a default action and save. Press Check the connection: the add-on makes a harmless list call and sends nothing. The secret key is encrypted before it is saved and never shown again, and the add-on only talks to the amazonaws.com endpoint of your region.

Give the IAM user the smallest permission that works. A user that may only publish to one topic, or send to one queue, is the safest credential to put on a website. If you use temporary credentials, store the STS session token too.

The AWS Messaging settings screen in Gravity Forms: the licence box, the AWS region, the access key ID, the encrypted secret key, the default action and the Check the connection button
The settings: your own AWS region, access key and encrypted secret key, and the default action for every feed.

Step 2: publish an order to SNS

Open the form, go to Settings → AWS Messaging and add a feed called Order to SNS. Choose the SNS action, paste the topic ARN, and write the message with merge tags, for example: New order from {Name:1}, plan {Plan:2}, entry {entry_id}. Everything subscribed to that topic (an email, a queue, a Lambda function, an HTTPS endpoint) receives it at once. A FIFO topic keeps the order of events and, with the deduplication id the add-on adds, never records the same event twice.

An AWS Messaging feed: the action switch, the SNS topic ARN, the subject and message built from form fields with merge tags, and the condition
A feed: the action, the target in your AWS account, and the message built from the form.

Step 3: queue work with SQS

Add a second feed called Fulfilment queue. Choose the SQS action and paste the queue URL. Write the body as JSON so your worker can parse it, for example a small object with the name, the plan and the entry id. A worker on EC2, in a container or in a Lambda function polls the queue and does the slow work (generate a PDF, call another API, update a ledger) without making the visitor wait. If order matters, use a FIFO queue.

Step 4: route an event with EventBridge

Add a feed called Form event, choose EventBridge, and set a source such as com.yourcompany.forms, a detail type such as Booking submitted, and a detail built from the form. One event can trigger many rules: start a Step Functions workflow, write to a data store, notify a team channel through an API destination. EventBridge is the switchboard, and your form is one of the things that can flip a switch.

Step 5: run code with Lambda

Add a feed called Process submission and choose Lambda. Enter the function name and a JSON payload. With the Event invocation type the function runs asynchronously and the form finishes immediately; with RequestResponse the add-on waits for the function and records an error if the function throws. Lambda is the right choice when the submission needs custom code right away: enrich the data, write to a database, or call a private system.

Step 6: see what happened

The visitor sees the confirmation at once, because the work runs in the background. When AWS answers, the entry gets a note with the action and the id AWS returned, and the AWS Messaging box on the entry shows the action, the status and the target. Use the merge tags {aws_status}, {aws_action} and {aws_message_id} in notifications, and the events AWS: the message was sent and AWS: the message could not be sent, so your team is told the moment something fails. The full field reference is in the setup guide.

The AWS Messaging box on a Gravity Forms entry: the action, the status sent, the target and the message id returned by AWS
Every send on the entry: the action, the status, the target and the AWS message id.

What happens when something goes wrong

Networks fail, and an event delivered twice can create a duplicate order. The add-on handles that carefully.

  • When AWS cannot be reached or throttles the request, nothing was sent, so the add-on tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours.
  • When a request may have reached AWS but no clear answer came back, the add-on does not repeat it for a standard target: it marks the entry unsure and the note gives the deduplication id to look for in CloudWatch or CloudTrail. For a FIFO topic or queue it retries safely, because the deduplication id makes a repeat harmless.
  • Wrong credentials, a missing permission or a missing target are final and explained on the entry.

A complete example

A software company has a trial request form with a name, a work email, a plan and a company size. Three feeds cover it. Order to SNS publishes every request to a topic that an email list and a sales queue both subscribe to. Fulfilment queue sends a JSON job to SQS so a worker can create the trial account. Process submission invokes a Lambda function that adds the lead to the CRM. One submission, three AWS services, and the visitor only ever sees the thank-you page.

Good practice

  • Give the website IAM user the least privilege it needs, scoped to the exact topic, queue, function or bus.
  • Use FIFO topics and queues when an action must never be duplicated.
  • Set a daily cap so a wave of spam submissions cannot run up an AWS bill.
  • Keep secrets out of the message body; the add-on already keeps your AWS secret key encrypted and out of every note.

Questions

Do I need a developer to set it up?

No. The settings take your AWS credentials once, and each feed is a few fields. Developers can use a filter to change the request, and will recognise the SNS, SQS, EventBridge and Lambda targets.

Are my AWS credentials safe?

The secret key is encrypted with your site’s security salts, never shown again, and only used to sign the request to your region. Notes and logs never contain it.

Who pays for the AWS usage?

You do, in your own AWS account, at your own price. The add-on never sends anything through GravityExtra.

Which Gravity Forms versions does it support?

Gravity Forms 2.5 and newer. It is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.

Get started

The Gravity Forms AWS Messaging Premium Add-on turns every matching submission into an action in your own AWS account: publish to SNS, send to SQS, put an EventBridge event, or invoke a Lambda function, with merge tags, conditions, safe retries and signed requests. See the features, the price and the setup guide on the add-on page.

See the AWS Messaging add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr