2020-11-11 terraform destroy gpg pinentry

1 minute read

pinentry is broken on my mac?!

try this first

# Kill gpg-agent
killall gpg-agent

# Run gpg-agent in daemon mode
gpg-agent --daemon

Universal handoff - clipboard mac/IOS

There is a feature in mac land that allows you to share clipboard between phone and computer if they are both on the same wifi along with the same apple account. This can be super useful for a variety of applications.

Here's how to turn on Handoff on your devices:

    On your Mac: Choose Apple () menu > System Preferences, then click General. Select “Allow Handoff between this Mac and your iCloud devices.”
    On your iPhone, iPad, and iPod touch: Go to Settings > General > Handoff, then turn on Handoff.


TF destroy single resource

Terraform is great but sometimes there are bugs with things, or sometimes you just need to make a thing go away. Specifically there was an issue with AWS api-gateway and a cycle loop that terraform would get in to, we needed to delete the resources without making a mess of terraform and the environment. How do you do this.

# resource named aws.my-bad-resource
terraform destroy -target aws.my-bad-resource
# then it will ask for confirmation and delete it  yey easy right?