SlideShare a Scribd company logo
AWS CodeCommit – Securing the
Repository and Branches
Mr. Subramanyam Tirumani Vemala
subramanyam.vemala@capgemini.com
Securing Repo’s and Branches - CodeCommit:
Steps are in detail with the screenshots as below:
1. Create IAM – Group, which has the inline policies to Deny, delete, merge,
push, put file etc.
2. Add the user to the secured Group.
3. While creating the Group, attach the inline policy by adding the
appropriate JSON.
4. Any user can be added into the multiple groups.
5. Minimum access Group policies will override the Group with maximum
access policies.
One scenario, where this can be used is, to prevent junior developers
to push, merge, delete, add files etc. into the Repo or Branches and securing
them.
Logged-in AWS Console:
Search for IAM service:
Click on Create New Group:
Fill-in the details, as per the titles:
Skip, this Attach Policy – its optional:
Create Group:
New Group is created:
Choose the created Group:
“click here”, to attach inline policy:
Set Permissions:
Fill-in the inline policy details:
Review policy:
Policy applied to the Group:
Refer AWS Documentation for Deny JSON,
and construct:
https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"codecommit:GitPush",
"codecommit:DeleteBranch",
"codecommit:PutFile",
"codecommit:Merge*"
],
"Resource": "arn:aws:codecommit:us-east-2:111111111111:MyDemoRepo",
"Condition": {
"StringEqualsIfExists": {
"codecommit:References": [
"refs/heads/master"
]
},
"Null": {
"codecommit:References": false
}
}
}
]
}
IAM – Users:
Click on User, for the details:
Groups tab – Click on Add user to groups:
Choose the Group, for which you need to add
the User:
This specific user is a member of two Group’s:
User’s Permissions tab:
User’s Permissions tab – Add permissions
button:
User’s – Security credentials tab – Click on
Create access key:
Access key created, download the csv file for
details:
User’s – list of Access Keys:
Generate Git credentials for AWS
CodeCommit:
Git credentials generated:
Downloaded XLS Git credentials:
Action's available on a generated HTTPS Git
credentials:
Users – Access Advisor tab:
List of policies attached to that specific User:
Appendix:
https://docs.aws.amazon.com/codecommit/latest/userguide/auth-
and-access-control-iam-identity-based-access-control.html
https://docs.aws.amazon.com/codecommit/latest/userguide/auth-
and-access-control-permissions-reference.html
https://docs.aws.amazon.com/codecommit/latest/userguide/auth-
and-access-control.html

More Related Content

PDF
[Azure Governance] Lesson 4 : Azure Policy
PPTX
Azure Database Services for MySQL PostgreSQL and MariaDB
PDF
KubeCon + CloudNative Con NA 2021 | A New Generation of NATS
PPTX
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
PPTX
Securing sensitive data with Azure Key Vault
PPTX
Kubernetes PPT.pptx
PDF
Building Microservices with gRPC and NATS
PDF
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
[Azure Governance] Lesson 4 : Azure Policy
Azure Database Services for MySQL PostgreSQL and MariaDB
KubeCon + CloudNative Con NA 2021 | A New Generation of NATS
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Securing sensitive data with Azure Key Vault
Kubernetes PPT.pptx
Building Microservices with gRPC and NATS
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...

What's hot (20)

PDF
Azure Arc by K.Narisorn // Azure Multi-Cloud
PDF
Observability, Distributed Tracing, and Open Source: The Missing Primer
PPTX
Azure Overview Arc
PPTX
Kubernetes
PPTX
Introduction to AWS VPC, Guidelines, and Best Practices
PPTX
AWS Monitoring & Logging
PDF
Easy, Secure, and Fast: Using NATS.io for Streams and Services
PDF
AWS CDK Introduction
PDF
Kubernetes環境で実現するWebアプリケーションセキュリティ
PDF
Kubernetes
PDF
RethinkConn 2022!
PPTX
[Noel] Azure AD Connect Technical Deep Dive
PPTX
Docker & Kubernetes 기초 - 최용호
PDF
Event-driven autoscaling through KEDA and Knative Integration | DevNation Tec...
PPTX
AWS Lambda
PPTX
双方向レプリケーションの(Bidirectional Replication)の利用方法
PPTX
Azure role based access control (rbac)
PPTX
쿠버네티스의 이해 #1
PPTX
AWS VPC & Networking basic concepts
PPTX
AWS Elastic Beanstalk
Azure Arc by K.Narisorn // Azure Multi-Cloud
Observability, Distributed Tracing, and Open Source: The Missing Primer
Azure Overview Arc
Kubernetes
Introduction to AWS VPC, Guidelines, and Best Practices
AWS Monitoring & Logging
Easy, Secure, and Fast: Using NATS.io for Streams and Services
AWS CDK Introduction
Kubernetes環境で実現するWebアプリケーションセキュリティ
Kubernetes
RethinkConn 2022!
[Noel] Azure AD Connect Technical Deep Dive
Docker & Kubernetes 기초 - 최용호
Event-driven autoscaling through KEDA and Knative Integration | DevNation Tec...
AWS Lambda
双方向レプリケーションの(Bidirectional Replication)の利用方法
Azure role based access control (rbac)
쿠버네티스의 이해 #1
AWS VPC & Networking basic concepts
AWS Elastic Beanstalk
Ad

Similar to AWS CodeCommit – Securing the Repository and Branches (20)

PPTX
AWS IAM User Setup for CodeCommit
PDF
Increase Your Security Posture with Temporary Elevated Access and AWS IAM Ide...
PDF
Amazon AWS Identity Access Management
PPTX
Identity access management (iam)
DOCX
Discussion Post an article review (minimum of 200 words) relat
PDF
2023-11-23-AWS-UG-Las-Palmas-Increase-your-security-posture-with-temporary-el...
PDF
Essbase security implementation
PDF
Essbase security implementation
PDF
Essbase security-implementation
PPTX
Manage security in Model-app Power App with Common data service
PDF
SCS-C02 Exam Practice Tests for Amazon | Boost2Certify
PDF
Are you using mail policies effectively to secure your mail
PDF
PrestaShop Custom HTML Block English Guide
DOCX
Elasticache Lab Report.docx
PDF
How to -_implement_clientless_single_sign_on_authentication_in_single_active_...
PPTX
Start a BLog: Module 3
PPTX
AWSM2C3.pptx
PDF
1BT_Tech_Talk_AWS_Cross_Account_Access
PPTX
Lecture 11 managing the network
PPTX
Security settings in dynamics 365 customer engagement (crm)
AWS IAM User Setup for CodeCommit
Increase Your Security Posture with Temporary Elevated Access and AWS IAM Ide...
Amazon AWS Identity Access Management
Identity access management (iam)
Discussion Post an article review (minimum of 200 words) relat
2023-11-23-AWS-UG-Las-Palmas-Increase-your-security-posture-with-temporary-el...
Essbase security implementation
Essbase security implementation
Essbase security-implementation
Manage security in Model-app Power App with Common data service
SCS-C02 Exam Practice Tests for Amazon | Boost2Certify
Are you using mail policies effectively to secure your mail
PrestaShop Custom HTML Block English Guide
Elasticache Lab Report.docx
How to -_implement_clientless_single_sign_on_authentication_in_single_active_...
Start a BLog: Module 3
AWSM2C3.pptx
1BT_Tech_Talk_AWS_Cross_Account_Access
Lecture 11 managing the network
Security settings in dynamics 365 customer engagement (crm)
Ad

More from Subramanyam Vemala (14)

PPTX
Domain Driven Development (DDD)
PPTX
AWS Amazon Quantum Ledger Database (QLDB)
PPTX
A Java Microservices Spring Boot and Docker case study.
PPTX
Java microservicesdockerdockerhubusecase2
PDF
Java microservicesspringbootcasestudy2
PPTX
Aws centralized logs
PPTX
AWS SNS - Notifications through SMS and Email
PPTX
Creating AppStream users through User Pool
PPTX
Creating AppStream apps and configuring users with Domain Join.
PPTX
AWS CodeCommit Setup
PPTX
Migration architecture on_prem
PPTX
Aws managed microsoft ad
PPTX
AWS AD Connector - SSO - Directory Service - Cloud
PPTX
Aws over view_demoppt
Domain Driven Development (DDD)
AWS Amazon Quantum Ledger Database (QLDB)
A Java Microservices Spring Boot and Docker case study.
Java microservicesdockerdockerhubusecase2
Java microservicesspringbootcasestudy2
Aws centralized logs
AWS SNS - Notifications through SMS and Email
Creating AppStream users through User Pool
Creating AppStream apps and configuring users with Domain Join.
AWS CodeCommit Setup
Migration architecture on_prem
Aws managed microsoft ad
AWS AD Connector - SSO - Directory Service - Cloud
Aws over view_demoppt

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
history of c programming in notes for students .pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
assetexplorer- product-overview - presentation
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Transform Your Business with a Software ERP System
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
history of c programming in notes for students .pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Designing Intelligence for the Shop Floor.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
assetexplorer- product-overview - presentation
Operating system designcfffgfgggggggvggggggggg
PTS Company Brochure 2025 (1).pdf.......
How to Migrate SBCGlobal Email to Yahoo Easily
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Understanding Forklifts - TECH EHS Solution
CHAPTER 2 - PM Management and IT Context
Navsoft: AI-Powered Business Solutions & Custom Software Development
Digital Systems & Binary Numbers (comprehensive )
Which alternative to Crystal Reports is best for small or large businesses.pdf
Transform Your Business with a Software ERP System
Wondershare Filmora 15 Crack With Activation Key [2025
Reimagine Home Health with the Power of Agentic AI​

AWS CodeCommit – Securing the Repository and Branches