- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-19-2022 02:05 AM
Hello,
we are planning to deploy component servers (CPM, PSM and PSM) in AWS and connect the to out on-prem Vault.
Our AWS engineer wants to include the servers in auto scaling groups, so in case of something happens to a server, it automatically brings up a new server.
Is this possible?
My understanding is, that if you bring up a new server from an image, the configuration can be the same, but the password of the CPM/PSM/PSMP users will be out of sync and they can be synced only manually via PrivateArk Client by using an administrator account, so the new server will not connect automatically.
Can we somehow automatically sync the passwords? Or is there any other way to use auto scaling at least for the PSM servers (just in case of failure, not for adding whole new PSMs)?
Thanks.
10-19-2022 11:04 AM
Unfortunately the component deployment does not lend itself well to an ASG. The component registration is the real challenge as you've already noted. For every server that is spun up behind the ASG, you would need to implement some automation to at least register the CPM/PSM service to the Vault using valid credentials. After a few scaling events you would have a very messy user environment in the Vault (every registration creating a new CPM/PSM user).
A better method for CyberArk would probably be simple PSM load balancing. This would incur additional infrastructure cost but would be far more manageable. You could reduce the resources on some servers depending on your LB config to save some costs, but it is the supported method.
10-20-2022 04:32 AM
There should be 2 CPMs (1 active and 1 DR), 2 PSMs and 2 PSMPs. New servers should be created only in case of a failure, so I didn't expect a lot of new CPM/PSM users.
But I still don't know how can I automate the registration. I should prepare another CPM/PSM users in the Vault and store their password in AWS? Or I should create new users after server startup? (For that I think I will still need a CyberArk user/password stored in AWS, with rights to create new users ).
And if a new CPM user is created, we need to assign it to the safes as well, right?
I agree with you that a PSM load balancing is a better solution, maybe we should add few more PSM servers to those 2.
And in case of CPM failure, I think that a manual switch to DR should be acceptable.
I will suggest the client to use this, just wanted to know the possibilities of automating the registration of CPM/PSM.
Thanks,
Zsolt
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

