Amazon EC2 · Arazzo Workflow
Amazon EC2 Rotate Key Pair
Version 1.0.0
Verify a key pair exists, create its replacement, then delete the old key pair.
Provider
Workflows
rotate-key-pair
Replace an existing SSH key pair with a freshly created one.
Chains DescribeKeyPairs, CreateKeyPair, and DeleteKeyPair so the new key is in place before the old key is removed.
1
verifyOldKey
describeKeyPairs
Confirm the existing key pair is present before rotating.
2
createNewKey
createKeyPair
Create the replacement key pair.
3
deleteOldKey
deleteKeyPair
Delete the retired key pair now that its replacement exists.