Skip to content

Commit 5bf8aba

Browse files
committed
remove unused certificate attachment to ELB checks
1 parent 51aadf2 commit 5bf8aba

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

api/elb/index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,4 @@ async function detachCertificateFromElb (certificateArn) {
4141
return true
4242
}
4343

44-
/* // check if a certificate is attached to the elb listener
45-
async function isCertificateAttachedToElb (listenerArn, certificateArn) {
46-
const elbv2 = process.env.NODE_ENV === 'development'
47-
? new MockELBv2() // use the mocked elb for local development
48-
: new AWS.ELBv2()
49-
const { Certificates } = await elbv2.describeListenerCertificates({ ListenerArn: listenerArn }).promise()
50-
const found = Certificates.some(certificate => certificate.CertificateArn === certificateArn)
51-
if (!found) {
52-
return false
53-
}
54-
return true
55-
} */
56-
5744
export { attachCertificateToElb, detachCertificateFromElb }

0 commit comments

Comments
 (0)