I think the conclusion we've reached is that cloud-init isn't an appropriate way to add swap to an instance after it has been spun up. cloud-init has been designed to do disk setup at first boot and so makes assumptions that wouldn't hold after that point.
If people do want to add swap after first boot, they should use the standard tooling they would use on any other Ubuntu instance. :)
Steve,
I think the conclusion we've reached is that cloud-init isn't an appropriate way to add swap to an instance after it has been spun up. cloud-init has been designed to do disk setup at first boot and so makes assumptions that wouldn't hold after that point.
If people do want to add swap after first boot, they should use the standard tooling they would use on any other Ubuntu instance. :)
Thanks,
Dan