For code deployment in ElasticBeanstalk we follow the following steps
-
firstly we added a plugin in jenkins. AWS Elastic Beanstalk Deployment Plugin
-
In credential management section add a credential for Bit-bucket or any other resource where is your repository and second credentials of AWS account.
-
After adding crerdentials we start to create a free style job.
-
Configure git repository in source code management. Reference image:
-
Add a build step with "AWS Elastic Beanstalk" and configure it with proper details.