Open outscale-toa opened 2 years ago
Ok, so security_group_name_to_link
is not working at all. If you remove ip_protocol
, you can apply the configuration, but nothing happens. Furthermore, once security_group_name_to_link
is used, it becomes impossible to destroy, resulting in an error message like:
Error: Error revoking security group sg-2e00c45d rules: 400 Bad Request
However, using the following syntax, it will work as expected:
resource "outscale_security_group_rule" "outscale_security_group_rule-5" {
flow = "Inbound"
security_group_id = outscale_security_group.outscale_security_group5.id
rules {
from_port_range = "9090"
to_port_range = "9090"
ip_protocol = "tcp"
security_groups_members {
account_id = "123456789"
security_group_name = outscale_security_group.outscale_security_group4.security_group_name
}
}
}
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
N/A
Expected Behavior
The security group rule is created correctly.
Actual Behavior
The security group rule failed.
Steps to Reproduce
terraform init
terraform apply
Additional Context
References