Hello,
I am trying to implement automation for rotation iam_access_key
, is there anyway of doing this with terraform ?
Thanks a lot
Hello,
I am trying to implement automation for rotation iam_access_key
, is there anyway of doing this with terraform ?
Thanks a lot
[ Terraform aws_iam_access_key rotation ]
(https://gist.github.com/vlobachev/6b90af20956828061586463a119cad0d#file-terraform-aws_iam_access_key-rotation)
Simple mark you keys as taint : |
|
---|---|
> terraform taint aws_iam_access_key.internal_key |
|
or > terraform taint aws_iam_access_key.internal_key[\"user-une-key\"] if you are usin for_each in resourse. |
|
apply taint: > terraform apply -target=aws_iam_access_key.internal_key
|
Wondering if there’s a way to do this without persisting AWS keys to tfstate.
Probably going to end up using my own script to rotate keys to avoid statefile issue unless there’s some other solution.