Skip to content

Feature: Pass in a pre-configured route53 boto3 client to Route53Dns provider #197

Open
@tkalus

Description

@tkalus

Which version of python are you using?

Python 3.8.3

What operating system and version of operating system are you using?

macOS, Ubuntu 20.04, Amazon Linux 2

What version of sewer are you using?

0.8.2

What is it that you would like to propose to add/remove/change?

Ability to pass in an pre-configured Route53 boto3 client to the Route53Dns provider.

Why do you want to add/remove/change that?

There are limitations in the current implementation that it would solve:

  • use of STS credentials (can't currently pass the session token).
  • where a AssumeRole is necessary (E.G. Hosted Zone in a different AWS Account).

How do you want to go about adding/removing/changing that?

  • Add a client=None kwarg to Route53Dns's __init__() function.
  • Check for exclusivity between passed AK/SK and client (Exception if both are passed).
  • Check/set class instance's self.r53 to be the passed client, if appropriate.
  • Add'l unit tests covering new case(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions