python-route53 icon indicating copy to clipboard operation
python-route53 copied to clipboard

Unable to change values

Open danielmanser opened this issue 8 years ago • 3 comments

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.

danielmanser avatar Apr 13 '16 08:04 danielmanser

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.

gtaylor avatar Apr 25 '16 05:04 gtaylor

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

danielmanser avatar Apr 25 '16 09:04 danielmanser

boto3 runs on Python 2.6-Python3.x.

gtaylor avatar Jun 12 '16 18:06 gtaylor