Part of the AWS ecosystem · 6 projects
This module publishes Drupal entities, such as nodes, paragraphs, and media, as JSON data to an Amazon SNS Topic. It allows for testing the connection and can be integrated via a service for programmatic publishing.
AWS SNS Entity Publish is a module to publish any entities like (node, paragraphs, media, etc..) as JSON data to Amazon SNS Topic.
How to use. ( Drupal 9 & 10 )
- Download module and enable.
- Make sure aws-sdk-php is installed.
- It is recommended to install this module using composer. So that it will download all dependencies altogether.
This module will provide a feature to check the test connection after configuring the endpoints in the backend by visiting this URL : http://xxxxxxxxxx/admin/config/aws-sns-entity-publish/test
Use module by service.
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_entity_update().
*/
function aws_sns_entity_publish_entity_update(EntityInterface $entity) {
$config = \Drupal::service('config.factory')->get('aws_sns_entity_publish.awsconfig');
$bundle_name = $entity->bundle();
if ($bundle_name == 'YOUR_CONTENT_TYPE_NAME') {
$asp_service = \Drupal::service('aws_sns_entity_publish.asp_services');
// serialize the entity response.
$payload = \Drupal::service('serializer')->serialize($entity, 'json');
$subject = t('Updating @bundleName content.', ['@bundleName' => $bundle_name]);
$topic = $config->get('aws_sns_default_topic_arn');
$asp_service->entityPublishToAwsSns($subject, $payload, $topic);
}
}
For More Information: Please refer the README.md
Ask your assistant about AWS SNS Entity Publish
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the AWS ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha6 | Pre-release | 9–11 | PHP >=7.4 | Oct 8, 2026 | |
| 1.0.0-alpha5 | Pre-release | 9–10 | PHP >=7.4 | Nov 3, 2023 | |
| 1.0.0-alpha4 | Pre-release | 9–10 | PHP >=5.3.2 | Oct 3, 2023 | |
| 1.0.0-alpha3 | Pre-release | 9–10 | PHP >=5.3.2 | Aug 23, 2023 | |
| 1.0.0-alpha2 | Pre-release | 9–10 | PHP >=5.3.2 | Aug 22, 2023 | |
| 1.0.x-dev | Dev | 9–10 | PHP >=7.4 | Aug 22, 2023 | |
| 1.0.0-alpha1 | Pre-release | 9–10 | PHP >=5.3.2 | Aug 22, 2023 |