コード例 #1
0
ファイル: aws.py プロジェクト: shoaib74/terraformpy
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
    )
コード例 #2
0
 def create_resources(self):
     self.res1 = Resource("res1", "foo", foo=self.foo)
コード例 #3
0
 def create_resources(self):
     self.res1 = Resource('res1', 'foo', foo=self.foo)