sparse-intern-71089
11/20/2020, 6:47 AMelegant-island-39916
11/20/2020, 9:53 AMec2.SecurityGroupRule
instead, makes it simple to reference them afterwards too. Otherwise, from the example in python:
allow_tls = aws.ec2.SecurityGroup("allowTls",
description="Allow TLS inbound traffic",
vpc_id=aws_vpc["main"]["id"],
ingress=[{
"description": "TLS from VPC",
"from_port": 443,
"to_port": 443,
"protocol": "tcp",
"cidr_blocks": [aws_vpc["main"]["cidr_block"]],
}],
egress=[{
"from_port": 0,
"to_port": 0,
"protocol": "-1",
"cidr_blocks": ["0.0.0.0/0"],
}],
tags={
"Name": "allow_tls",
})
alert-raincoat-81485
11/20/2020, 6:24 PM