Automate EC2 setup using Jenkins & Ansible | Automate Infrastructure setup using Ansible and Jenkins

preview_player
Показать описание

Pre-requisites:
Ansible is installed and Boto is also installed on Jenkins instance
Ansible plug-in is installed in Jenkins.
Make sure you create an IAM role with AmazonEC2FullAccess policy and attach the role to Jenkins EC2 instance.
Playbook for creating new EC2 instance needs to be created but you can refer my GitHub Repo
Рекомендации по теме
Комментарии
Автор

your blog is very helpful
Can you please advise on the below task
When i upload Csv file to S3 bucket the data should upload into DynamoDB using AWS lambda function(python).

Thanks in advnace

ekthanjaliradha
Автор

Hi, do we need to use terraform to setup ec2 instance, or ansible is also preferable? Please let me know

bharavikumar
Автор

i am getting the below error :

TASK [Launch the new EC2 Instance]
fatal: [localhost]: FAILED! => {"msg": "The module ec2 was redirected to amazon.aws.ec2, which could not be loaded."}

PLAY RECAP
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

FATAL: command execution failed
hudson.AbortException: Ansible playbook execution failed
at
at
at
at
at
at
at
at
at
at
at
at

ekthanjaliradha