Install Jenkins using Helm:*
- Run:
helm install jenkins stable/jenkins -f jenkins/my-values.yaml
- Wait until jenkins pod is ready and running
- Run:
kubectl port-forward svc/jenkins 8080:8080 &
Add AWS Credentials on Jenkins:
- Login to Jenkins
- URL: http://localhost:8080
- User: admin
- Password: admin
- Click on Credentials
- Click global
- Click Add Credentials
- Fill the following:
- Kind: AWS Credentials
- ID: aws-credentials
- Access Key ID: <Your AWS Access Key>
- Secret Access Key: <Your Secret Key>
- Click OK
Run the pipeline:
- Click **New Item"
- Enter whatever you want for item name
- Select Pipeline
- Click OK
- Scroll down Pipeline section
- Select Pipeline script for Definition
- Copy the content of aws-s3.groovy file and paste it into Script section
- Click Save
- Click Build Now
** Run Pipelines**
-
Create states bucket
- Create new pipeline item
- Copy
lambda-states-bucket.groovy
script content and add it to the Pipeline script section - Build the pipeline
-
Run lambda-s3 project
- Create new pipeline item
- Copy
lambda-function.groovy
script content and add it to the Pipeline script section - Build the pipeline