Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MassTransit;
using MassTransit.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Tcetra.Apm.Common;
using Tcetra.Apm.Common.Trace;
configurator.UsingAmazonSqs(delegate (IBusRegistrationContext context, IAmazonSqsBusFactoryConfigurator sqsConfigurator)
{
//...
sqsConfigurator.UseServiceScope(context);
sqsConfigurator.UseTcetraApm(); //Adds the various filters
new ExceptionMapperFilterConfigurationObserver(sqsConfigurator);
sqsConfigurator.UseDelayedMessageScheduler();
//...
sqsConfigurator.ConfigureEndpoints(context);
});
@altnp
altnp / gist:aa01e581fdbcca918d74581074a2d271
Created December 23, 2023 22:07
TF CF Firewall Rule Output
│ Error: failed to create ruleset "http_request_firewall_custom"
│ with cloudflare_ruleset.ip_restriction,
│ on cloudflare.tf line 36, in resource "cloudflare_ruleset" "ip_restriction":
│ 36: resource "cloudflare_ruleset" "ip_restriction" {
│ A similar configuration with rules already exists and overwriting will have unintended consequences. If you are
│ migrating from the Dashboard, you will need to first import the existing rules using cf-terraforming. You can find
│ details about how to do this at
│ https://developers.cloudflare.com/terraform/additional-configurations/ddos-managed-rulesets/#optional-delete-existing-rulesets-to-start-from-scratch