Skip to content

Commit

Permalink
Bugfix for Route 53 alias find (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: Miguel Calles <[email protected]>
  • Loading branch information
miguel-a-calles-mba and Miguel Calles committed Jun 12, 2020
1 parent 0a4d2a7 commit c984f86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ module.exports = class ServerlessPlugin {
'listResourceRecordSets',
listParams,
)) || [];
const recordSet = ResourceRecordSets.find((x) => x.Name === cname);
const recordSet = ResourceRecordSets.find(
(x) => x.Name === cname && x.Type === 'A',
);
if (recordSet) {
this.log(`Route 53 record for ${cname} already exists.`);
return;
Expand Down

0 comments on commit c984f86

Please sign in to comment.