Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Expected Behavior
When Terraform plan is complete, to_port and from_port should appear in the SecurityGroup plan.
example code: sg = aws.security_group.SecurityGroup(self, "SecurityGroup", vpc_id=vpc.id, description="Allow internal access and outbound public access", ingress=[], egress=[{"protocol": "-1", "from_port": 0, "to_port": 0, "cidr_blocks": ["0.0.0.0/0"]}], tags={"Name": config["vpc"]["sec_grp_name"]})
Actual Behavior
"aws_security_group": { "SecurityGroup": { "//": { "metadata": { "path": "vpc-nonprod/SecurityGroup", "uniqueId": "SecurityGroup" } }, "description": "Allow internal access and outbound public access", "egress": [ { "cidr_blocks": null, "description": null, "from_port": null, "ipv6_cidr_blocks": null, "prefix_list_ids": null, "protocol": "-1", "security_groups": null, "self": null, "to_port": null } ], "ingress": [ ], "tags": { "Name": "nonprod-fd-sec-grp" }, "vpc_id": "${aws_vpc.Vpc.id}" } },
Steps to Reproduce
use CDKTF in Python and define a security group:
Versions
Terraform v1.8.5 on darwin_arm64
cdktf --version 0.20.7
Python 3.9
Providers
No response
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
Community Note