Skip to content

Commit

Permalink
Fix example of eks_nodegroup (#2028)
Browse files Browse the repository at this point in the history
Fix example of eks_nodegroup

SUMMARY
When using the example as a reference, ansible-playbook command outputs the following errors:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument 'scaling_config' is of type <class 'list'> and we were unable to convert to dict: <class 'list'> cannot be converted to a dict"}

fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument 'labels' is of type <class 'list'> and we were unable to convert to dict: <class 'list'> cannot be converted to a dict"}

fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of capacity_type must be one of: ON_DEMAND, SPOT, got: on_demand"}

This fixes those issues.
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
eks_nodegroup
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Mark Chappell
  • Loading branch information
oomichi authored Jan 4, 2024
1 parent e5ea29e commit bfd1d80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/eks_nodegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,19 @@
- subnet-qwerty123
- subnet-asdfg456
scaling_config:
- min_size: 1
- max_size: 2
- desired_size: 1
min_size: 1
max_size: 2
desired_size: 1
disk_size: 20
instance_types: 't3.micro'
ami_type: 'AL2_x86_64'
labels:
- 'teste': 'test'
'teste': 'test'
taints:
- key: 'test'
value: 'test'
effect: 'NO_SCHEDULE'
capacity_type: 'on_demand'
capacity_type: 'ON_DEMAND'
- name: Remove an EKS Nodegrop
community.aws.eks_nodegroup:
Expand Down

0 comments on commit bfd1d80

Please sign in to comment.