I am trying to create latency based records and AW...
# aws
v
I am trying to create latency based records and AWS getting this error.
Copy code
* [ERR]: Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name='xxxxxxxx.io.', type='CNAME', set-identifier='latency'] but it already exists]
Copy code
return new aws.route53.Record('admin', {
        name: 'admin',
        zoneId: zone.then(z => z.zoneId),
        type: 'CNAME',
        setIdentifier: 'latency',
        records: [loadBalancer],
        ttl: 60,
        latencyRoutingPolicies: [{ region: i.region }]
    })
f
Have you checked to see if there’s already a record?
v
i solved by using unique setIdentifier 🙂
👍 1
thank you