Dear Dick,
Kindly help me with this issue I am getting errors.
Hi Prasanna!
Can you copy and paste the relevant code that the error is coming from?
Prasanna,
That is not useful, so I am going to make a guess.
Based on this, you are probably using this sensible module:
Based on the error, it is likely you are using image, which requires the value be passed as a dictionary. So either the value is passed as a dictionary or you simply use image_id - like this from the example:
- name: start an instance with a public IP address
amazon.aws.ec2_instance:
name: "public-compute-instance"
key_name: "prod-ssh-key"
vpc_subnet_id: subnet-5ca1ab1e
instance_type: c5.large
security_group: default
network:
assign_public_ip: true
**image_id: ami-123456**
tags:
Environment: Testing