In my terraform code I have:
resource "aws_iam_access_key" "this" {
user = aws_iam_user.this.name
pgp_key = "keybase:jonnymccullagh"
}
And after running the terraform apply
I get an encrypted IAM secret key. To decrypt the string:
echo "wcFMA+32longstring1wA=" | base64 --decode | keybase pgp decrypt