如何使用terraform在easydns中自动添加dns条目?

How to automate adding a dns entry in easydns with terraform?(如何使用terraform在easydns中自动添加dns条目?)
本文介绍了如何使用terraform在easydns中自动添加dns条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Oracle 云中自动创建一个实例并在其中部署一些应用程序.

I am automating creating a instance in oracle cloud and deploy some apps in it.

设置实例后,我想添加一个 dns 条目,将新实例的公共 IP 映射到 easydns.com 中的 FQDN.并且还想在实例中使用 certbot 为该 FQDN 生成 Let's Encrypt TLS 证书.目前,我正在手动执行此操作.

After setting up the instance, I want to add a dns entry that maps the public IP of the new instance to a FQDN in easydns.com. And also want to generate Let's Encrypt TLS certificates for that FQDN using certbot in the instance. Currently, I'm doing this manually.

我想使用 Terraform 或 ansible 自动化第二部分.

I want to automate this second part using Terraform or ansible.

  • 我在 terraform 中找到了一个 EasyDNS DNS Challenge Provider,但我认为这是针对 dns 挑战的,我仍然不知道如何使用它来添加 dns 条目.:https://www.terraform.io/docs/providers/acme/dns_providers/easydns.html

  • I found a EasyDNS DNS Challenge Provider here in terraform, but i think this is for dns challenge, and i'm still confused how to use it to add the dns entry.: https://www.terraform.io/docs/providers/acme/dns_providers/easydns.html

我可以使用这个DNS Provider在easydns中添加A记录吗?(如果 easydns 支持 RFC 2136,现在不要这样做):https://registry.terraform.io/providers/hashicorp/dns/latest/文档

Can i use this DNS Provider to add an A record in easydns? ( Don't now if easydns supports RFC 2136 ) : https://registry.terraform.io/providers/hashicorp/dns/latest/docs

是否有任何类似下面的 Ansible 模块可以实现相同的功能?https://docs.ansible.com/ansible/latest/collections/community/general/nsupdate_module.htmlhttps://docs.ansible.com/ansible/latest/collections/community/general/dnsimple_module.html

Is there any Ansible module something like below using which i can achieve the same? https://docs.ansible.com/ansible/latest/collections/community/general/nsupdate_module.html https://docs.ansible.com/ansible/latest/collections/community/general/dnsimple_module.html

或者将 OCI DNS 添加为辅助 dns 或类似的东西是否是一个不错的选择?

Or is it a good option to add OCI DNS as secondary dns or something like that?

有人可以帮我吗?

推荐答案

你说得对.链接的提供程序不用于创建 DNS 条目.

You are right. The linked provider is not for creating DNS entries.

您需要为 EasyDNS DNS 条目找到(实施?)Terraform 提供商.我在任一列表中都看不到:

You need to find (implement?) a Terraform provider for EasyDNS DNS entries. I cannot see one in either of the lists:

  • https://www.terraform.io/docs/providers/index.html
  • https://www.terraform.io/docs/providers/type/community-index.html

也许有一些低调的开源项目.或者,您可以询问供应商是否有任何 Terraform 提供程序或计划添加它.

Maybe there's some low-profile open-source project. Or you can ask the vendor if they have any Terraform provider or plans to add it.

这篇关于如何使用terraform在easydns中自动添加dns条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

SQL to Generate Periodic Snapshots from Transactions Table(用于从事务表生成定期快照的SQL)
MyBatis support for multiple databases(MyBatis支持多个数据库)
Oracle 12c SQL: Missing column Headers in result(Oracle 12c SQL:结果中缺少列标题)
SQL query to find the number of customers who shopped for 3 consecutive days in month of January 2020(查询2020年1月连续购物3天的客户数量)
How to get top 10 data weekly (This week, Previous week, Last month, 2 months ago, 3 month ago)(如何每周获取前十大数据(本周、前一周、上个月、2个月前、3个月前))
Select the latest record for an Id per day - Oracle pl sql(选择每天ID的最新记录-Oracle pl SQL)