Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

Do you know how to execute AWS CLI command inside a Jenkinsfile in order to build a pipeline? I didn't find any plugins

1 Answer

0 votes
by (50.2k points)

For this problem, you need to install aws cli on your server and make sure the Jenkins user has permissions to run it. Or simply use the Amazon AMI when creating the EC2 instance, it comes with the aws cli. Assign a role in the instance with the appropriate policy. ( it is simpler than using user key in aws configure )

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...