Skip to content

Commit

Permalink
fixing hyphen in the resource-type
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbishop committed Jun 21, 2022
1 parent 5a005be commit 43d3346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twingate/eventProcessor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const apiKey = ssmParameter.Parameters.find(x => x.Name === 'TwingateApiKey').V
export async function eventProcessor(event) {
let [remoteNetworkName, resourceNameOrId, resourceAddress, resourceId] = ["", "", "", ""]

if (event.detail.service=="rds" && event.detail.resource-type=="cluster"){
if (event.detail.service=="rds" && event.detail["resource-type"]=="cluster"){
throw new Error(`RDS cluster is not supported`)
}

Expand Down

0 comments on commit 43d3346

Please # to comment.