# IdM/IPA instance registration for cloud instances

**URL:** <https://forums.rockylinux.org/t/idm-ipa-instance-registration-for-cloud-instances/1035>\
**Category:** Infrastructure\
**Created:** [December 16, 2020, 8:57pm UTC](https://forums.rockylinux.org/t/idm-ipa-instance-registration-for-cloud-instances/1035 "2020-12-16T20:57:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlitzered](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/schlitzered/32/48_2.png) [@schlitzered](https://forums.rockylinux.org/u/schlitzered)\
**Post date:** [December 16, 2020, 8:57pm UTC](https://forums.rockylinux.org/t/idm-ipa-instance-registration-for-cloud-instances/1035/1 "2020-12-16T20:57:54Z")

</div>

hi, i notices that it seems you are going to use AWS for hosting Rocky Linux infrastructure.

a while back i created a tool to automatically register cloud instances in IdM/IPA.

it is capable of creating PTR/A records, and automatically assign uniq FQDN names based on a so called DNS indicator, which is a tag on the instance.

it mainly consists of 4 parts:

lambda function: watches ec2 lifecycle events, and acts on instance creation/termination

API: a RESTful api that is called by the lambda function to create/delete DNS A/PTR records, as well as IdM/IPA host entries

Foreman Smart Proxy: used by the rest api as an abstraction for different DNS/IdM providers.

registration script: a script that is called via userdata, to fetch information required to rollout an instance, like the designated FQDN fot this instance, als well as the IdM/IPA OTP.

might come in handy, in case you plan on registering ec2 instances to IdM/IPA

here is the link: [https://github.com/schlitzered/CatWeazle](https://github.com/schlitzered/CatWeazle)

---

<div class="post-metadata">

**Author:** ![jeffrey-a](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jeffrey-a/32/208_2.png) [@jeffrey-a](https://forums.rockylinux.org/u/jeffrey-a)\
**Post date:** [December 16, 2020, 11:12pm UTC](https://forums.rockylinux.org/t/idm-ipa-instance-registration-for-cloud-instances/1035/3 "2020-12-16T23:12:38Z")

</div>

Hey @schlitzered!

Thanks for sharing this! Seriously, I’m going to give CatWeazle some of my own time to look into, because this is a challenge I face in other areas, and I know I’m not alone. I know right now the infrastructure team is centralizing on configuration management tooling which can certainly be made to do this task, but the \*nix spirit is also about discrete tools and the more tools to choose from, the better.

I’m tagging @neil here so he sees, he’s the infrastructure manager.

---

<div class="post-metadata">

**Author:** ![schlitzered](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/schlitzered/32/48_2.png) [@schlitzered](https://forums.rockylinux.org/u/schlitzered)\
**Post date:** [December 17, 2020, 12:10am UTC](https://forums.rockylinux.org/t/idm-ipa-instance-registration-for-cloud-instances/1035/4 "2020-12-17T00:10:25Z")

</div>

@jeffrey-a let me know if you have any question, i am happy to help

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 4:11am UTC](https://forums.rockylinux.org/t/idm-ipa-instance-registration-for-cloud-instances/1035/5 "2023-08-25T04:11:57Z")

</div>


