diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..63d0dd7 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,49 @@ +name: PUBLISH + +on: push + +permissions: + id-token: write # This is required for requesting the JWT + contents: read # This is required for actions/checkout + +jobs: + S3_SYNC: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: AWS - Set AWS Credentials + uses: aws-actions/configure-aws-credentials@v5.1.1 + with: + aws-region: ${{ vars.AWS_REGION }} + role-to-assume: ${{ secrets.AWS_IAM_GITHUB_OIDC_ROLE_ARN }} + role-session-name: gh_set_aws_credentials + + - name: AWS - Assume Role + id: aws_assume_role + uses: aws-actions/configure-aws-credentials@v5.1.1 + with: + aws-region: ${{ vars.AWS_REGION }} + role-to-assume: ${{ secrets.AWS_IAM_ASSUME_ROLE_ARN }} + role-session-name: gh_assume_role + role-chaining: true + + - name: AWS - S3 sync + run: | + # Mask sensitive info from logs + set +e + OUTPUT=$(aws s3 sync ./src s3://${{ secrets.AWS_S3_HP_DOT_DEV_S3_BUCKET }}/static --delete 2>&1) + EXIT_CODE=$? + if [ $EXIT_CODE -ne 0 ]; then + echo "S3 upload failed" + echo "$OUTPUT" | \ + sed 's/arn:aws:iam::[0-9]*:/arn:aws:iam::***:/g' | \ + sed 's/arn:aws:sts::[0-9]*:/arn:aws:sts::***:/g' | \ + sed 's/assumed-role\/[^/]*/assumed-role\/***\//g' | \ + sed 's/arn:aws:s3:::[^"]*"/arn:aws:s3:::***"/g' + fi + exit $EXIT_CODE diff --git a/README.md b/README.md index c16854b..245e093 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# hari.karthigasu.io \ No newline at end of file +# hariprasad.dev \ No newline at end of file diff --git a/assets/img/Hari_Karthigasu.pdf b/assets/img/Hari_Karthigasu.pdf deleted file mode 100644 index 972e1b1..0000000 Binary files a/assets/img/Hari_Karthigasu.pdf and /dev/null differ diff --git a/assets/img/dp.png b/assets/img/dp.png deleted file mode 100644 index 8d3a784..0000000 Binary files a/assets/img/dp.png and /dev/null differ diff --git a/index.html b/index.html deleted file mode 100644 index 4be83fb..0000000 --- a/index.html +++ /dev/null @@ -1,352 +0,0 @@ - - -
- - Jenkins icon by Icons8 - Kubernetes icon by Icons8 - Cloud icon by Icons8 - Docker icon by Icons8 - Python icon by Icons8 - - - - -
- A DevOps Enthusiast, Freelance consultant and Blog writer, passionate in latest technologies with more than half a decade of experience from retro data center to trendy Kubernetes and Cloud.
-
+ Hi, I'm Hari — a passionate Cloud, DevOps, and Platform Engineer based in The Netherlands. With over a decade of hands-on experience, I’ve worked on everything from traditional data centers to modern, scalable cloud.
+ I mainly work with AWS and follow DevOps practices, focusing on building solutions that are reliable, automated, and efficient.
+ Since 2021, I’ve been part of the AWS Community Builders program, where I share what I learn through articles and videos.
+ I enjoy solving real-world problems and sharing the lessons I’ve learned
In my spare time, I enjoy biking, going for walks, and doing photography.
+
When multiple identical VPC CIDRs compete for an AWS Transit Gateway!.
+ View +Understanding self-assumption and scoped-down policy in AWS IAM.
+ View +
+
+ •
+
+ •
+
+ •
+
+ •
+
+