Modern GitOps: Secure AWS Deployments with GitHub OIDC, Two-Repository Architecture, and Native S3…

📰 Medium · DevOps

Learn how to secure AWS deployments using GitHub OIDC, two-repository architecture, and native S3 for modern GitOps

intermediate Published 10 Jul 2026
Action Steps
  1. Configure GitHub OIDC for secure authentication
  2. Implement a two-repository architecture for infrastructure and application code
  3. Use native S3 for state locking in Terraform
  4. Set up a GitOps CI/CD workflow with automated PR comments
  5. Apply IAM policies for native S3 locking
Who Needs to Know This

DevOps engineers and cloud architects can benefit from this article to improve the security and efficiency of their AWS deployments

Key Insight

💡 Using GitHub OIDC and native S3 can improve the security and efficiency of AWS deployments

Share This
🚀 Secure your AWS deployments with modern GitOps! Learn how to use GitHub OIDC, two-repository architecture, and native S3 🚀

Key Takeaways

Learn how to secure AWS deployments using GitHub OIDC, two-repository architecture, and native S3 for modern GitOps

Full Article

Title: Modern GitOps: Secure AWS Deployments with GitHub OIDC, Two-Repository Architecture, and Native S3…

URL Source: https://chamika31.medium.com/modern-gitops-secure-aws-deployments-with-github-oidc-two-repository-architecture-and-native-s3-c0967c95dce7?source=rss------devops-5

Published Time: 2026-07-10T07:48:54Z

Markdown Content:
[Sitemap](https://chamika31.medium.com/sitemap/sitemap.xml)

[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fchamika31.medium.com%2Fmodern-gitops-secure-aws-deployments-with-github-oidc-two-repository-architecture-and-native-s3-c0967c95dce7&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

[](https://medium.com/?source=post_page---top_nav_layout_nav-----------------------------------------)

Get app

[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)

[Search](https://medium.com/search?source=post_page---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fchamika31.medium.com%2Fmodern-gitops-secure-aws-deployments-with-github-oidc-two-repository-architecture-and-native-s3-c0967c95dce7&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

![Image 1: Unknown user](https://miro.medium.com/v2/resize:fill:32:32/1*dmbNkD5D-u45r44go_cf0g.png)

1. [Part 1: The Two-Repository Architecture](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#741d "Part 1: The Two-Repository Architecture")
1. [1. The Bootstrap Repository (infra-bootstrap)](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#64b9 "1. The Bootstrap Repository (infra-bootstrap)")
2. [2. The Application Infrastructure Repository (app-infrastructure)](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#b785 "2. The Application Infrastructure Repository (app-infrastructure)")

2. [Part 2: State Locking in Terraform 1.10+](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#4c20 "Part 2: State Locking in Terraform 1.10+")
1. [What is State Locking and Why Do We Need It?](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#f36b "What is State Locking and Why Do We Need It?")
2. [The Old Way: S3 + DynamoDB](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#f7c9 "The Old Way: S3 + DynamoDB")
3. [The Modern Way: Native S3 Lockfile](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#527c "The Modern Way: Native S3 Lockfile")
4. [The Native S3 Locking IAM Gotcha](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#1565 "The Native S3 Locking IAM Gotcha")

3. [Part 3: Secure Authentication via AWS OIDC](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#7610 "Part 3: Secure Authentication via AWS OIDC")
4. [Part 4: GitOps CI/CD Workflow with Automated PR Comments](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#5625 "Part 4: GitOps CI/CD Workflow with Automated PR Comments")
1. [Source Codes](https://chamika31.medium.com/?source=post_page-----c0967c95dce7---------------------------------------#aca2 "Source Codes")

5. [Conclusion](https://chamika31.medium.com/?
Read full article → ← Back to Reads

Related Videos

AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Containers on Amazon ECS with Mama J
Containers on Amazon ECS with Mama J
AWS Developers
How to Open QTR Files (QuickTime Movie)
How to Open QTR Files (QuickTime Movie)
File Extension Geeks
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Amazon Web Services
Kubernetes Observability 101: Metrics, Logs, Dashboards, and Traces
Kubernetes Observability 101: Metrics, Logs, Dashboards, and Traces
Kubesimplify
Do Azure and AWS Have Too Much Power? The EU’s Answer: Maybe So. #cloud #aws #azure
Do Azure and AWS Have Too Much Power? The EU’s Answer: Maybe So. #cloud #aws #azure
Digital Transformation with Eric Kimberling