i am using ansible 2.1.0.0, when i execute a playbook against ec2 console i am finding this error
Error:
FAILED! => {“changed”: false, “failed”: true, “invocation”: {“module_args”: {“assign_public_ip”: false, “aws_access_key”: null, “aws_region”: “us-east-1”, “aws_secret_key”: null, “count”: 1, “count_tag”: null, “ebs_optimized”: false, “ec2_url”: null, “exact_count”: null, “group”: null, “group_id”: null, “id”: null, “image”: null, “instance_ids”: [“i-ba508d26”, “i-bda01c21”], “instance_profile_name”: null, “instance_tags”: null, “instance_type”: null, “kernel”: null, “key_name”: null, “monitoring”: false, “network_interfaces”: null, “placement_group”: null, “private_ip”: null, “profile”: null, “ramdisk”: null, “region”: “us-east-1”, “security_token”: null, “source_dest_check”: true, “spot_launch_group”: null, “spot_price”: null, “spot_type”: “one-time”, “spot_wait_timeout”: “600”, “state”: “running”, “tenancy”: “default”, “termination_protection”: false, “user_data”: null, “validate_certs”: true, “volumes”: null, “vpc_subnet_id”: null, “wait”: false, “wait_timeout”: “300”, “zone”: null}, “module_name”: “ec2”}, “msg”: “No handler was ready to authenticate. 1 handlers were checked. [‘HmacAuthV4Handler’] Check your credentials”}
it seems like it is happening because of environment variables not set properly but i have set the environment variables and still not working with environment variables set up in my .bashrc file.