سؤال

I am using boto with Route 53

I can add the A record with

changes = ResourceRecordSets(conn, "ZZZZZZZZZZ")
change = changes.add_change("CREATE", "test.MYDOMAIN.com", "A")
change.add_value("7.7.7.7")
result = changes.commit()

Is there any way that if i already have test.mydomain.com and i want to change its A record

هل كانت مفيدة؟

المحلول

EDIT: It seems there is an UPSERT directive. This is kind of an old answer, may be UPSERT was not available at the time of writing. If it is available, it would be best to use it.

I believe the only actions available are 'CREATE' and 'DELETE' so you would have to delete it first then do a create.

نصائح أخرى

Instead of CREATE use UPSERT

change = changes.add_change("UPSERT", "test.MYDOMAIN.com", "A")
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top