guardicore / monkey

Infection Monkey - An open-source adversary emulation platform

Home Page:https://www.guardicore.com/infectionmonkey/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore certain terraform metadata when updating infrastructure

cakekoa opened this issue · comments

If a user adds ssh keys to a deployed googlecompute resource, terraform will detect the change and want to overwrite it. However, we want to allow users to be able to add ssh keys without it tainting the infrastructure.

This post outlines a way to resolve the problem, by adding a lifecycle configuration to the resource.

We want to allow at least the "ssh-keys", and probably the "windows-keys" metadata to change. There may be more.