2017-05-19 1 views
0

Ich versuche, eine AWS EC2 Auto-Scaling-Gruppe mit dem Cloud-Modul ec2_asg zu erstellen.Ansible EC2_ASG Modul Fehler

Ich habe ein Playbook, das Sicherheitsgruppen, Elastic Load Balancer, Launch Config, Markierungen der Assets usw. erstellt. Alles funktioniert. Wenn ich versuche, eine neue ASG zu erstellen, bekomme ich einen Fehler. Unten ist der Playbook-Code und dann die -vvv-Ausgabe des Modulfehlers. Ich betreibe ansible 2.2.1.0 Jede Hilfe bei der Fehlersuche stark

#setup Logstash Autoscaling group 
- name: ELkstack LogStash ASG 
    ec2_asg: 
    name: "pro-ELK-LogStash-ASG" 
    launch_config_name: "test-test-asg" 
    health_check_period: 300 
    health_check_type: EC2 
    replace_all_instances: yes 
    replace_batch_size: 1 
    min_size: 1 
    max_size: 4 
    desired_capacity: 1 
    region: us-east-1 

-vvv Fehlerausgabe

An exception occurred during task execution. The full traceback is: 
    Traceback (most recent call last): 
    File "/var/folders/08/x2n75q_925l5xc9hfjc1gz9c0000gn/T/ansible_38fX0z/ansible_module_ec2_asg.py", line 875, in <module> 
main() 
    File "/var/folders/08/x2n75q_925l5xc9hfjc1gz9c0000gn/T/ansible_38fX0z/ansible_module_ec2_asg.py", line 864, in main 
create_changed, asg_properties=create_autoscaling_group(connection, module) 
    File "/var/folders/08/x2n75q_925l5xc9hfjc1gz9c0000gn/T/ansible_38fX0z/ansible_module_ec2_asg.py", line 437, in create_autoscaling_group 
launch_config=launch_configs[0], 
IndexError: list index out of range 

fatal: [localhost]: FAILED! => { 
"changed": false, 
"failed": true, 
"invocation": { 
    "module_name": "ec2_asg" 
}, 
"module_stderr": "Traceback (most recent call last):\n File \"/var/folders/08/x2n75q_925l5xc9hfjc1gz9c0000gn/T/ansible_38fX0z/ansible_module_ec2_asg.py\", line 875, in <module>\n main()\n File \"/var/folders/08/x2n75q_925l5xc9hfjc1gz9c0000gn/T/ansible_38fX0z/ansible_module_ec2_asg.py\", line 864, in main\n create_changed, asg_properties=create_autoscaling_group(connection, module)\n File \"/var/folders/08/x2n75q_925l5xc9hfjc1gz9c0000gn/T/ansible_38fX0z/ansible_module_ec2_asg.py\", line 437, in create_autoscaling_group\n launch_config=launch_configs[0],\nIndexError: list index out of range\n", 
"module_stdout": "", 
"msg": "MODULE FAILURE" 
} 

Antwort

0

Es war ein Abstand Problem geschätzt wird, fühlen sich dumm, aber wollte dies schließen out und für den Fall, dass noch jemand darauf reinkommt.