Тёмный
No video :(

How to Create Jenkins Pipeline to Automate S3 Bucket creation in AWS by executing Ansible Playbook 

DevOps Coach
Подписаться 21 тыс.
Просмотров 2,3 тыс.
50% 1

www.coachdevop...
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 AmazonS3FullAccess policy and attach the role to Jenkins EC2 instance.
Playbook for creating new S3 bucket needs to be created but you can refer my GitHub Repo
Ansible playbook for AWS S3 bucket creation
Steps:
1. Create Ansible playbook for S3 bucket creation
(Sample playbook is available in my GitHub Repo, you can use that as a reference)
2. Create Jenkins Pipeline
pipeline {
agent any
stages {
stage ("checkout") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'github.com/aka...]]])
}
}
stage('execute') {
steps {
//to suppress warnings when you execute playbook
sh "pip install --upgrade requests==2.20.1"
// execute ansible playbook
ansiblePlaybook 'create-s3.yml'
}
}
}
}
3. Build the Pipeline
4. Check Pipeline Console output

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@TrendingTechie
@TrendingTechie Год назад
Hi Sir, I used your docker compose method to install the sonarqube on our ec2 instance. but while running the sonarqube analysis stage we have configured in the AWS code pipeline, in the sonarqube. but getting not able to connect to sonarqube server. but similar instance works very well in plain ec2 instance with sonarqube but docker compose one getting performance issues mostly netwrok realted. we sacaled the instance from t3 medium to r5 large. but not use. any suggestions to fix this. Also make the video how to move the current running application from the docker compose to AWS ECS. without any data loss.
@DevOpsCoach
@DevOpsCoach Год назад
check pre-requisites..you need to perform system level changes.. Login to instance where you will be installing SonarQube, perform the below command: sudo vi /etc/sysctl.conf Add the following lines to the bottom of that file: vm.max_map_count=262144 fs.file-max=65536
@DevOpsCoach
@DevOpsCoach Год назад
Hi..Please watch this video if the issue is still not resolved: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tEa-tgfBaDw.html
Далее
How to Integrate Jenkins With AWS
23:13
Просмотров 45 тыс.
Useful gadget for styling hair 💖🤩
00:20
Просмотров 2,1 млн
🎙ПОЮ ВЖИВУЮ!
3:17:56
Просмотров 1,5 млн
How to Integrate Ansible With Jenkins
9:37
Просмотров 25 тыс.
Demo - Deploy files to S3 bucket using Jenkins
20:39