Hi,
can someone please help in creating the playbook to stop/start EC2 instance using lambda ?
Hi,
can someone please help in creating the playbook to stop/start EC2 instance using lambda ?
What you're asking is kind of confusing.
If your want or need to run a playbook to do it then you can do both with the EC2 module.
https://docs.ansible.com/ansible/latest/modules/ec2_module.html
Otherwise you need to lookup the AWS python/boto (or whatever your language of choice is) doco, and write the appropriate code/policies for your lambda. Once you've tested it, you can then use a playbook and the lambda module etc to deploy a lambda, create triggers and schedules etc