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

ALB Rule causes : Failed to describe rules: Parameter validation failed:\nInvalid type for parameter ListenerArn, value: None, type: <class 'NoneType'> #2400

Open
1 task done
aburgerhulft opened this issue Nov 26, 2024 · 0 comments

Comments

@aburgerhulft
Copy link

Summary

Can't add rules to ALB anymore.

Issue Type

Bug Report

Component Name

amazon.aws.elb_application_lb

Ansible Version

ansible [core 2.18.0]
  config file = None
  configured module search path = ['/Users/xxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Cellar/ansible/11.0.0/libexec/lib/python3.13/site-packages/ansible
  ansible collection location = /Users/xxx/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.3.9.4)] (/opt/homebrew/Cellar/ansible/11.0.0/libexec/bin/python)
  jinja version = 3.1.4
  libyaml = True

Collection Versions

$ ansible-galaxy collection list

AWS SDK versions

Name: boto3
Version: 1.35.64
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
Author-email: 
License: Apache License 2.0
Location: /opt/homebrew/Cellar/ansible/11.0.0/libexec/lib/python3.13/site-packages
Requires: botocore, jmespath, s3transfer
Required-by: 
---
Name: botocore
Version: 1.35.64
Summary: Low-level, data-driven core of boto 3.
Home-page: https://github.com/boto/botocore
Author: Amazon Web Services
Author-email: 
License: Apache License 2.0
Location: /opt/homebrew/Cellar/ansible/11.0.0/libexec/lib/python3.13/site-packages
Requires: jmespath, python-dateutil, urllib3
Required-by: boto3, s3transfer

Configuration

$ ansible-config dump --only-changed

OS / Environment

Mac OS

Steps to Reproduce

    amazon.aws.elb_application_lb:
        name: "{{ ansible_env.HULFTENV }}-main-{{ color }}"
        purge_listeners: true
        state: present
        subnets:
          - "{{ private_subnet_info1.subnets[0].subnet_id }}"
          - "{{ private_subnet_info2.subnets[0].subnet_id }}"
        security_groups:
          - "{{ lookup('amazon.aws.aws_secret', 'network/{{ansible_env.HULFTENV}}.VPCSecurityGroup', nested=true) }}"
        listeners:
          - Protocol: HTTP
            Port: 80
            DefaultActions:
              - Type: fixed-response
                FixedResponseConfig:
                  ContentType: "text/plain"
                  MessageBody: "This NOT the page you're looking for"
                  StatusCode: "503"
            Rules:
              - Conditions:
                  - Field: path-pattern
                    Values:
                      - '/web/*'
                Priority: '1'
                Actions:
                  - TargetGroupName: "ms-web-{{ color }}-tg"
                    Type: forward

Expected Results

Rules add to ALB

Actual Results

   "msg": "Failed to describe rules: Parameter validation failed:\nInvalid type for parameter ListenerArn, value: None, type: <class 'NoneType'>, valid types: <class 'str'>"
}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
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

1 participant