Closed anjo-swe closed 2 years ago
@anjo-swe Thank you for raising this issue. Would you be willing to open a PR to fix this issue?
@mandar242 thanks for the quick turnaround!
This is still an issue. At least for security_group_names
.
https://github.com/ansible-collections/amazon.aws/pull/594 doesn not work is the ELB does not exist.
Summary
When i try to create a classic ELB it fails to resolve
security_group_ids
based onsecurity_group_names
&subnets
Locally i fixed both issues by:
if self.elb.get('Subnets'):
toif self.elb is not None and self.elb.get('Subnets'):
vpc_id = vpc_ids.pop()
toreturn vpc_ids.pop()
Issue Type
Bug Report
Component Name
elb_classic_lb
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
macOS 11.6
Steps to Reproduce
Expected Results
Classic ELB named
dev-service-name
inside a VPC with 2 SGs attachedActual Results
Error 1 (only happens when creating)
Error 2
Code of Conduct