python-route53
python-route53 copied to clipboard
Unable to change values
Hi
I'm unable to change a record, although no exception is raised. On the Route 53 Console, I also still see the old value.
import route53
conn = route53.connect(
aws_access_key_id='xxx',
aws_secret_access_key='xxx',
)
zone = conn.get_hosted_zone_by_id('xxx')
for record_set in zone.record_sets:
if record_set.name == 'test.mydomain.me.':
print record_set
record_set.values = ['1.2.3.4']
print record_set.values
record_set.save()
print record_set.values
This is the output:
<AResourceRecordSet: test.mydomain.me.>
['1.2.3.4']
['1.2.3.4']
But it isn't saved. Tried it with very low TTL and also checked in the AWS console. Unfortunately, I don't seem to be able to print record.set.values
prior to modification. I'm using route53==1.0 installed with pip, and Python 2.7.10.
Hello!
It has honestly been so long since I've used this that I'm not even sure what to tell you. It probably needs to be updated to use boto3. If you figure anything out, send a PR my way and we'll get it merged in.
I think it is only Python3 compatible. I'm using boto now.
On 25.04.2016, at 07:17, Greg Taylor [email protected] wrote:
Hello!
It has honestly been so long since I've used this that I'm not even sure what to tell you. It probably needs to be updated to use boto3. If you figure anything out, send a PR my way and we'll get it merged in.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub
boto3 runs on Python 2.6-Python3.x.