Beispiel #1
0
def install_aws_security_group_attributes_as_blocks_hook():
    """Installs a hook that ensures that all ingress and egress blocks have all of the mandatory attributes defined
    as None, so that they compile out as null

    See: https://github.com/terraform-providers/terraform-provider-aws/issues/8786#issuecomment-496935442
    """
    Resource.add_hook(
        "aws_security_group", fill_in_optional_aws_security_group_rules_attrs
    )
Beispiel #2
0
 def create_resources(self):
     self.res1 = Resource("res1", "foo", foo=self.foo)
 def create_resources(self):
     self.res1 = Resource('res1', 'foo', foo=self.foo)