Unable to create EC2 Instance

24 views
Skip to first unread message

Karuppasamy Nallusamy

unread,
Jan 13, 2022, 9:42:18 AM1/13/22
to Ansible Project
Hi,

I just started learning Ansible.

I am trying to create EC2 instance from my managed host, configured on Mac OS Sierra but getting below error. 

Playbook:

ec1.PNG

Output Error:

ec2.PNG

Kindly help.

Rilindo Foster

unread,
Jan 13, 2022, 2:20:39 PM1/13/22
to ansible...@googlegroups.com
You would want to use image_id instead of image:

tasks:
  - ec2_instance:
      image_id: ami-abc123


On Jan 12, 2022, at 11:47 PM, Karuppasamy Nallusamy <saa...@gmail.com> wrote:

Hi,

I just started learning Ansible.

I am trying to create EC2 instance from my managed host, configured on Mac OS Sierra but getting below error. 

Playbook:

<ec1.PNG>

Output Error:

<ec2.PNG>

Kindly help.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1f8642c1-269b-4971-9cd9-a027c3efed35n%40googlegroups.com.
<ec1.PNG><ec2.PNG>


This email and its attachments are confidential and may be privileged.  Any unauthorized use or disclosure is prohibited.  If you receive this email in error, please notify the sender and permanently delete the original without forwarding, making any copies or disclosing its contents. NextCapital is a brand name representing NextCapital Group, Inc. and its subsidiaries, NextCapital Software, Inc. and NextCapital Advisers, Inc. 
Reply all
Reply to author
Forward
0 new messages