How to specify zoneID while creating a domain using boto_route53.present #67622
Replies: 12 comments
-
@nbari jsut for clarification purposes are you stating you have one domain with multiple hosted zone ids. I'm not seeing anywhere in the code where to specify hosted zone ids. |
Beta Was this translation helpful? Give feedback.
-
In aws, private zones can be created and they can use the same domain. In my case I had the need to modify/add/update some records on one of does private zones, but notice that changes where applied to other zone using the same domain, I think they were applied to the first private zone created with the same domain. To exemplify, suppose I have this domain
In this scenario, how to add a record for example to the Hosted ZONE ID I think currently is not posible but would be nice to specify the ZONE ID for this cases. |
Beta Was this translation helpful? Give feedback.
-
I've not got a similar setup but while playing I did try using the identifier which I could only get to work if I used a zoneid so maybe that's what it's for? The documentation doesn't make it clear.
|
Beta Was this translation helpful? Give feedback.
-
Can't make it work, this is what I get:
And this is the yaml:
|
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Is there any chance of reopening this? I also have a similar use case for multiple hosted zones with the same name and don't see a way to make it work with salt. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
@kjohnston-cashstar if you set the |
Beta Was this translation helpful? Give feedback.
-
@Ch3LL thanks for getting back so quickly! I didn't actually try that because, based on https://docs.saltstack.com/en/latest/ref/states/all/salt.states.boto_route53.html, it doesn't sound like I ended up rolling my own solution with boto3. If |
Beta Was this translation helpful? Give feedback.
-
ahh gotchya looks like you are right. i'll approve this as a feature request, unless @saltstack/team-boto sees something i'm missing here? |
Beta Was this translation helpful? Give feedback.
-
So it looks like boto_route53 was not updated to use boto3, instead there is a separate boto3_route53 state. I suppose this is for backwards compatibility. Idk why anyone would be using boto vs boto3 these days, but I've seen crazier things. Anyhow, you need to be using We have a lot of pillars, so the below code still uses pillar names based on the original My state file looks like this:
Pillar example:
Hopefully this will be helpful for anyone with this issue that didn't realize there was a completely separate state. |
Beta Was this translation helpful? Give feedback.
-
I would also recommend adding a notice/link to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
When using multiple private zones using the same domain name, how to define what zoneID to use?
Setup
Steps to Reproduce Issue
Having the domain mydomain.internal created multiple times and assigned to multiple VPC, while using
boto_route53.present
the record is added to the first zone found. wondering if there is a way to specify aZONE ID
.Versions Report
Beta Was this translation helpful? Give feedback.
All reactions