Skip to content
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

Generate Unique Security Group name #21712

Open
kTipSSIoYv opened this issue Feb 15, 2022 · 1 comment
Open

Generate Unique Security Group name #21712

kTipSSIoYv opened this issue Feb 15, 2022 · 1 comment

Comments

@kTipSSIoYv
Copy link

We have a way to generate uniuque hostname for vm_name. I want to achieve the same thing for AWS Security group. Right now we can't create a security group if the name exists already, so I want to append incrementing number.

I've created a security group method in Datastore and I want the security group names be like SG-${append_vm_name}-$n{3}.

This is what we use for unique vm_name. Is there a similar approach or code that I can reuse inside the security group method?

prov.update_vm_name("#{prov.options[:vm_target_name]}$n{3}",:update_request => false)

I'm trying a workaround by using random number generator to append to SG name.

@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@Fryguy Fryguy removed the stale label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants