I want to create AWS security group rule resource "aws_security_group_rule", and then want to attach it to AWS EC2 Windows instance and be able to RDP into it from anywhere.
sg.tf
resource "aws_security_group" "My_VPC_Security_Group" {
vpc_id = aws_vpc.My_VPC.id
name = "My VPC Security Group"
description = "My VPC Security Group"
}
Can anyone help me with this?