ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
49 stars 84 forks source link

Security Group discovery fails on ROSA (HCP) #1369

Closed faangbait closed 2 months ago

faangbait commented 3 months ago

The ROSA (HCP) security group names do not include the "Name=worker" pattern match. They are styled like: sha256junk2c9s1lebd-default-sg

https://github.com/ibm-mas/ansible-devops/blob/47d6975c65123e862a2728bec341ca152f0ab05e/ibm/mas_devops/roles/ocp_efs/tasks/efs-setup.yml#L33-L35

A few options yield valid security groups:

aws ec2 describe-security-groups --filters Name=vpc-id,Values=['vpc-xxxxxxxxx'] Name=description,Values='*worker*'

aws ec2 describe-security-groups --filters Name=vpc-id,Values=['vpc-xxxxxxxxx'] Name=tag:api.openshift.com/id,Values='*'