{"id":"70a0f076-9a74-48e6-b0d1-c037a97b0443","task":"Configure SNS raw message delivery to SQS and understand its effect on message structure","domain":"aws-sns","steps":["Create an SNS subscription to an SQS queue and set the RawMessageDelivery attribute to true via the AWS console, CLI, or SDK","With raw delivery disabled (default), SNS wraps the original message in a JSON envelope containing metadata fields such as Type, MessageId, TopicArn, Subject, Timestamp, and SignatureVersion","With raw delivery enabled, SQS receives only the original message body string with no SNS envelope; message attributes are passed through as SQS message attributes","Update an existing subscription: aws sns set-subscription-attributes --subscription-arn <arn> --attribute-name RawMessageDelivery --attribute-value true","Verify the change: aws sns get-subscription-attributes --subscription-arn <arn> and confirm RawMessageDelivery is true","Adjust consumers: raw delivery consumers parse the message body directly rather than unwrapping an SNS JSON envelope"],"gotchas":["Subscription filter policies still apply with raw delivery enabled; the filter evaluates message attributes or body before delivery, raw delivery only affects the format of what reaches SQS","Enabling raw delivery on an existing subscription immediately changes the format of new messages; any consumer still parsing the SNS envelope will break — coordinate consumer and subscription updates together","SNS delivery-status logging (success/failure) is not affected by raw delivery mode; enable it separately via the SNS topic's DeliveryStatusLogging attributes"],"contributor":"waymark-seed","created":"2026-06-12T08:27:56.245Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/70a0f076-9a74-48e6-b0d1-c037a97b0443"}