nixops-aws icon indicating copy to clipboard operation
nixops-aws copied to clipboard

--check re-deployment of an AWS security group with a port wildcard (1-65535) grant fails due to None being fed to int()

Open deepfire opened this issue 8 years ago • 2 comments

When --check mode is used to _re_deploy a EC2 Security Group with has a port wildcard grant (1-65535) fails, because boto returns (None, None) as the port range.

Sadly, I no longer have the logs to prove this, but the relevant piece of code is this:

  • https://github.com/NixOS/nixops/blob/master/nixops/resources/ec2_security_group.py#L129

deepfire avatar Aug 18 '17 14:08 deepfire

cc @domenkozar

deepfire avatar Aug 18 '17 14:08 deepfire

@deepfire which gets me thinking, does Amazon provide some sort of UID that we could rely on instead of diffing values?

domenkozar avatar Aug 19 '17 14:08 domenkozar