Thirty days in, and today both tasks required deliberately switching off something that exists to protect you. Git refuses to let you overwrite shared history. EC2 refuses to forward packets that aren't addressed to it. Both refusals are correct. Both had to go.

One Git task, one AWS task. Hard reset a branch and force-push it, then build a NAT instance so a private EC2 instance can reach S3. The tasks come from the KodeKloud Engineer platform.

Hard reset: the undo with no record

Three days ago on Day 27, I wrote, in bold, that you should never rewrite history you have already pushed. Today's task is doing precisely that. So let me deal with that head-on rather than pretend the two posts don't touch.

cd /usr/src/kodekloudrepos/official