Prepare for It. In this case, all you can do is politely deliver your resignation, then strive to make the transition as easy as possible for your team. Your manager may not have the ideal reaction to your news__and your workplace may not be the most pleasant environment for the next two weeks__but to avoid burning bridges, it's best to work through it with a positive attitude.
Your End Game. When you hand in your resignation, it can kick off a bit of chaos__your position will need to be filled, but your duties will also need to be covered until they can replace you. As part of your resignation letter, it's a good idea to convey what your availability is during that transitional period.