Comments (6)
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
from community.aws.
cc @jillr @s-hertel @tremble @wimnat
click here for bot help
from community.aws.
Still present with Ansible 2.9.23.
- name: Destroy target group
elb_target_group:
region: "{{ aws_region }}"
name: "{{ aws_target_group_name }}-{{ k8s_cluster_id }}"
state: absent
wait: true
TASK [Destroy target group] **************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "target_type is instance but all of the following are missing: protocol, port, vpc_id"}
from community.aws.
cc @markuman
click here for bot help
from community.aws.
The issue seems to be at
module = AnsibleAWSModule(argument_spec=argument_spec,
required_if=[
['target_type', 'instance', ['protocol', 'port', 'vpc_id']],
['target_type', 'ip', ['protocol', 'port', 'vpc_id']],
]
)
where the required_if
fails to account for the fact that ['protocol', 'port', 'vpc_id']
are not really required if state=absent
(all that should be required in that case is name
).
It doesn't look like required_if
supports that additional level of logical complexity directly.
from community.aws.
@rwky Digging into this a little more, the issue was actually fixed by ansible/ansible#65201 however it wasn't backported to Ansible 2.9.
The latest version of Ansible is 2.11, with 2.12 due in a couple of weeks. As such Ansible 2.9 is no longer accepting most patches so you'll need to explicitly use the version of this module from the collections if you want the fix. https://docs.ansible.com/ansible/latest/user_guide/collections_using.html
This may mean you'll need to set the "collections" keyword, or refer to the module as "community.aws.elb_target_group" rather than just elb_target_group".
from community.aws.
Related Issues (20)
- Add support for "skip_matching" preference in autoscaling_instance_refresh
- Typo in autoscaling_instance_refresh module in check mode HOT 1
- Unable to connect with SSM on Amazon Linux 2023 based instances HOT 6
- Allow bulk deletion of ECS Task Definitions HOT 1
- etag module util missing unit tests
- Implement Support for Amazon EFS Archive Storage Class and Elastic Mode in Ansible EFS Module
- aws workspaces inventory plugin HOT 1
- SSM Connection: Failed to create temporary directory HOT 2
- Add possibility to create AWS Network Load Balancer with attached Security Group
- Add throughput mode elastic for efs HOT 1
- api_gateway doesn't create a new deployment when API Gateway already exists
- eks_cluster should be able to upgrade cluster versions
- aws_ssm remote directory / HOT 4
- Add task to get a list of all ECS clusters HOT 2
- s3_lifecycle module should allow setting the ChecksumAlgorithm argument to AWS SDK put_bucket_lifecycle_configuration() call
- s3_lifecycle encounters error KeyError: 'Rules' when there are no lifecycle configuration rules on bucket HOT 2
- Tag network-interfaces associated with a launch template
- amazon.aws.iam_role: EntityAlreadyExists after 7.3.0 collection
- aws_ssm.Connection._get_boto_client lose access_key, token when using aws profile
- I need to get EKS cluster information and specifically oidc issuer url
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.aws.