mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: Fixes the use of Uppercase chars in ELB Listeners
This commit is contained in:
parent
9fade4dbf6
commit
ffbb59a73e
@ -49,7 +49,7 @@ func expandListeners(configured []interface{}) ([]*elb.Listener, error) {
|
|||||||
if l.SSLCertificateId != nil && *l.SSLCertificateId != "" {
|
if l.SSLCertificateId != nil && *l.SSLCertificateId != "" {
|
||||||
// validate the protocol is correct
|
// validate the protocol is correct
|
||||||
for _, p := range []string{"https", "ssl"} {
|
for _, p := range []string{"https", "ssl"} {
|
||||||
if (*l.InstanceProtocol == p) || (*l.Protocol == p) {
|
if (strings.ToLower(*l.InstanceProtocol) == p) || (strings.ToLower(*l.Protocol) == p) {
|
||||||
valid = true
|
valid = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user