-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dns work flows #274
Add dns work flows #274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Genne23v E2E tests are failing because WS_ROUTE53_HOSTED_ZONE_ID
is missing.
It shouldn't throw in testing environment. I will take a closer look tomorrow. |
I filed #275 to improve the situation for local dev and needing a hosted zone in moto. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @dadolhay's comments, and added some more of my own.
Another thought I have while reading this. We're starting to add a lot of queues. Each queue requires more memory, Redis event handlers, etc. At some point, we'll have to measure. I know in the official docs, the BullMQ talks about queues not being a huge drain. Related to the above, I also wonder if we should use the same queue or worker for all common tasks. For example: all Route53 operations are going to get made against the same API, and share the same rate limiting. We can set a rate limit on a worker to avoid hitting this. From https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html, here are the Route53 API limits we need to respect:
|
Thank you for the issue. I will assign myself and work as a next step. |
I will take a look at this and write an issue for follow-up. Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks like something we could take. I've made a few more comments, but in general, we could start with this and improve going forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice!
Thank you for all your valuable feedback. It really helps me a lot! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few small things and it's ready.
f91afbd
to
8f2dcb2
Compare
Cool, I'm happy if you find it useful :) |
I wrote #283 to help with this logic. |
50f55e2
Close #217 and parts of #270
This PR adds workflows as below.
PENDING
status. Returnid
to updatestatus
later.TTL
property added due to error)INSYNC
or something else)active
orerror
To test this, it needs manual steps as below.
hostedZone
using unit testdns.server.test.ts
. If you run all test, it will removehostedZone
. Run partial test.hostedZoneId
fromlocalhost:5053/moto-api
and setAWS_ROUTE53_HOSTED_ZONE_ID
ROOT_DOMAIN
tostarchart.com
http://localhost:8080/dev
and hit Request DNS Record button