Skip to content

Instantly share code, notes, and snippets.

https://github.com/KhajaWorkshopsAtQT/Dec1623
pipeline {
agent { label 'docker' }
stages {
stage('clean workspace'){
steps{
cleanWs()
}
}
stage('Checkout from Git'){
steps{
{
"apiVersion": "aquasecurity.github.io/v1alpha1",
"kind": "VulnerabilityReport",
"metadata": {
"annotations": {
"trivy-operator.aquasecurity.github.io/report-ttl": "24h0m0s"
},
"creationTimestamp": "2023-10-22T09:06:22Z",
"generation": 1,
"labels": {
https://github.com/WorkshopsByKhaja
https://raw.githubusercontent.com/asquarezone/DockerZone/master/Aug23/Images/spc/Dockerfile
git clone https://github.com/asquarezone/TerraformZone.git
# azure
cd july23/ntier-azure
terraform init
terraform apply -var-file="dev.tfvars"
#aws
cd july23/ntier-aws
terraform init
#!/bin/bash
VERSION=$(curl --silent "https://api.github.com/repos/cloudflare/cfssl/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
VNUMBER=${VERSION#"v"}
wget https://github.com/cloudflare/cfssl/releases/download/${VERSION}/cfssl_${VNUMBER}_linux_amd64 -O cfssl
chmod +x cfssl
sudo mv cfssl /usr/local/bin
wget https://github.com/cloudflare/cfssl/releases/download/${VERSION}/cfssljson_${VNUMBER}_linux_amd64 -O cfssljson
chmod +x cfssljson
sudo mv cfssljson /usr/local/bin
cfssljson -version
{
"Roles": [
{
"Path": "/",
"RoleName": "AmazonEKSClusterRole",
"RoleId": "AROAZ4ECZC3PKSBXIQMMW",
"Arn": "arn:aws:iam::678879106782:role/AmazonEKSClusterRole",
"CreateDate": "2022-07-10T13:36:20+00:00",
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
{
"Snapshots": [
{
"Description": "Copied for DestinationAmi ami-0080352261d3c786b from SourceAmi ami-0a80dc84a0e6ab5b0 for SourceSnapshot snap-0a85657906cb9d36f. Task created on 1,524,247,133,370.",
"Encrypted": false,
"OwnerId": "258918358832",
"Progress": "100%",
"SnapshotId": "snap-00bcdf1fcf9ba0cb4",
"StartTime": "2018-04-20T17:59:00+00:00",
"State": "completed",
This file has been truncated, but you can view the full file.
{
"Snapshots": [
{
"Description": "Copied for DestinationAmi ami-0080352261d3c786b from SourceAmi ami-0a80dc84a0e6ab5b0 for SourceSnapshot snap-0a85657906cb9d36f. Task created on 1,524,247,133,370.",
"Encrypted": false,
"OwnerId": "258918358832",
"Progress": "100%",
"SnapshotId": "snap-00bcdf1fcf9ba0cb4",
"StartTime": "2018-04-20T17:59:00+00:00",
"State": "completed",