Use button to just join to WIFI and then turn off, is it possible?

My Dash buttons finally are dying and I want to replace them with Seeed’s.
I don’t want to setup aws account for that and I don’t even want to let the buttons out of my home network.
All I want is for them to join to my wifi and by doing so trigger an event.
After that they just need to turn back off.

Is that possible?

P.S
Thats how I used dash buttons until now.

I think so. You can log in the same aws account when you first started