terraform-aws-slackbot icon indicating copy to clipboard operation
terraform-aws-slackbot copied to clipboard

can this be used in a private environment without a domain?

Open joshtrutwin opened this issue 9 months ago • 3 comments

Hi,

I'm looking at your module and it fits a lot of my criteria for building a slack bot internally at my organization. I was wondering how hard it would be to not set up a custom domain in route53 and just use the internal API Gateway address (PRIVATE APIG)? It appears the step functions are referencing the domain so I'm not sure if this is a difficult effort? I didn't want to dig too far into this so figured I'd ask here.

Thanks!

joshtrutwin avatar Feb 05 '25 15:02 joshtrutwin

I don't think this would work because Slack is going to need to call out to your API and if it's private that won't be possible

amancevice avatar Feb 05 '25 15:02 amancevice

Yeah I was wondering about that but I've been able to set up a "Socket Mode" bot that does not need to call out from external. I'll see where this goes, I like your set up with APIG and Step Functions.

joshtrutwin avatar Feb 05 '25 17:02 joshtrutwin

I haven't messed around with Socket Mode at all but the references to the domain name in the Step Functions are just to pass it as the Source field in published events, eg

{
  "EventBusName": "example-slack-app",
  "Source": "example.com",
  "DetailType": "POST /callback",
  "Detail": "{...}"
}

amancevice avatar Feb 05 '25 17:02 amancevice