For the following step I assume that you have Terraform already configured and the DigitalOcean provider retrieves the authentication token from the DIGITALOCEAN_TOKEN environment variable.

If you have an old provider version you’ll need to upgrade the provider using terraform init -upgrade as the capability was added to provider as part of pull request #71 which is included in v1.0.0.

First we need to lookup the key id for the DNS resource record that we want to import through the DigitalOcean REST API:

We then use this ID to import the record into Terraform:
terraform import digitalocean_record.ns[0] 2i.at,25712647

Now you can execute terraform plan again and take it from there.

Tokens, U2F, and the real world

The use of two-factor authentication for personal use, even for online banking, never really caught on.

The only device that was at least slightly promising was the YubiKey, but there wasn’t really much adoption for it as the various operation modes all had their fair share of issues.

  • HOTP was…

In one of my recent projects we were using Business Monitor and the embedded Cognos BI. During the implementation of the automated installation and configuration scripts it became apparent that not everything was scriptable, as I would’ve expected from my past experience with IBM products.

Configuration of certain Cognos parameters…

Gerhard Poul

Software Engineer with an interest in Cloud Platforms and DevOps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store