Simple Jenkins CI/CD Pipeline for S3 static website Deployment
- Make sure you have Jenkins installed, here the reference link
- Make sure you have install AWS CLI & configured it with access key & secret access key on Jenkins host
- Create a S3 bucket, here’s the reference link
- Fork this git repo for HTML webite
- Make sure you have installed & configuredbelow plugin:
- Click on New item
- Enter name of your pipeline then select freestyle project and click Ok
- Enter the URL of your forked repo which was done in Section 1 of this lab
This will make sure website file are copied in Jenkins workspace which later would be deployed on S3 bucket
- Now selct Build Triggers tab & select Execute shell so we can execute AWS CLI command inside jenkins
- Then enter AWS CLI which upload the website to S3 bucket
aws s3 cp . s3://YOUR-BUCKET-NAME --recursive --acl public-read
- Click on Apply then Save
- Your pipeline is created
Comments are closed, but trackbacks and pingbacks are open.