Questions tagged [aws-codecommit]

AWS CodeCommit is a fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories.

AWS CodeCommit is a fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories. CodeCommit eliminates the need to operate your own source control system or worry about scaling its infrastructure. You can use CodeCommit to securely store anything from source code to binaries, and it works seamlessly with your existing Git tools.

569 questions
4
votes
2 answers

CodeCommit fails when after commit rewrite with --amend

We are using AWS Elastic Beanstalk and eb cli for deployment. One problem we stumbled upon is not being able to rewrite commits. When trying to deploy with eb deploy after runnig git commit --amend , we get the following error: ERROR:…
4
votes
2 answers

GitHub Action to push commits to AWS CodeCommit: Host key verification failed

I'm trying to create a GitHub Action that pushes any commits to an AWS CodeCommit repo. For this, I'm using a workflow with a single main.yml file using the composite run steps action method for creating a GitHub Action. This is what the Action…
rpivovar
  • 3,150
  • 13
  • 41
  • 79
4
votes
2 answers

AWS pipeline with cross-account CodeCommit repo as Source

I need to create a pipeline with CDK that will trigger a deploy in CloudFormation based on a branch in a CodeCommit repo. If the CodeCommit repo was in the same account as the pipeline, I would use something like: const codecommitRepo =…
4
votes
2 answers

AWS Cloudwatch trigger Codepipeline on dynamic tag

I want to tag a commit with dynamic tag, for example git tag deploy-$(date +"%Y-%m-%d_%H-%M-%S"), and then trigger codepipeline from cloudwatch. The problem is if I use following cloudwatch event pattern: { "source": [ "aws.codecommit" ], …
4
votes
2 answers

Git CodeCommit credentials keep ending up in Keychain Access on Mac OS X

After doing the following to set up my CodeCommit repo on AWS with git: $ git config --global credential.helper '!aws codecommit credential-helper $@' $ git config --global credential.UseHttpPath true I can only make one commit before I have to go…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
4
votes
1 answer

Organise AWS CodeCommit repositories in groups/projects

I am just starting with AWS CodeCommit and wonder, how can I organize Repos into projects/groups. Coming from GitLab, I can create a "Group" and within this group, I create my repos. For example, I have a project "MyApp" with a server, web-client,…
schube
  • 652
  • 5
  • 18
4
votes
3 answers

aws codebuild UPLOAD_ARTIFACTS - CLIENT_ERROR: Error uploading artifacts: AccessDenied: Access Denied status code: 403

I am using aws codebuild, where my source is "codecommit" and trying to upload artifact to S3. But getting below exception. UPLOAD_ARTIFACTS - CLIENT_ERROR: Error uploading artifacts: AccessDenied: Access Denied status code: 403, request id:…
Kuldeep
  • 507
  • 1
  • 5
  • 13
4
votes
0 answers

How to pass CodeCommit tag name to CodePipeline using CloudWatch events

I Have a CodeCommit repository which needs to be built only when a tag is pushed to the remote. I have used a CloudWatch event to successfully trigger the CodePipeline using the following rule. I am following this document (referenceCreated event…
4
votes
2 answers

Can't merge pull request in AWS CodeCommit. Complains there are conflicts, but remote and local are up-to-date

CodeComit doesn't merge pull request. Says there conflicts, but local and remote branches are up-to-date. I'm able to create PR fine - CodeCommit says branches are mergeable. But when I click [Merge], it says there are conflicts. And both…
Green
  • 28,742
  • 61
  • 158
  • 247
4
votes
1 answer

Git SHA in CodeBuild?

How can I get the Git SHA of a commit from a CodeBuild build when the source code is managed by CodeCommit? Like any other Git repository, each CodeCommit commit gets a unique Git SHA. When CodeBuild executes a buildspec.yml the Git SHA can be read…
matsev
  • 32,104
  • 16
  • 121
  • 156
4
votes
1 answer

How to create folder in AWS CodeCommit repository?

I am new to these things.I have created repository in AWS CodeCommit. I want to create a folder in it and upload files using CodeCommit Console. Is it possible? Then how can I do it?
WCM
  • 595
  • 3
  • 11
  • 27
4
votes
0 answers

Importing a git repo from AWS CodeCommit to BitBucket from web interface?

I have a git repo on AWS CodeCommit, and I want to import it using the BitBucket web interface. I used the https access keys but it's giving me (No repository exists at that URL.), although it has not authentication problem. fatal: unable to access…
4
votes
3 answers

AWS codecommit migration

May be its simple question but I am not able to find right document to implement this. I have two aws account i.e personal P and Office O. For experiment purpose initially I have created Codecommit and attached 8 GIT projects. There are four users…
ULLAS K
  • 881
  • 2
  • 11
  • 24
4
votes
0 answers

Build a CodeStar pipiline that spans two different AWS accounts

For the same project, I have two separate account a dev account and a staging/production account. On the first, each developer has full access on all account's services. There's a CodeStar service in place, when a push is made on the related…
BAD_SEED
  • 4,840
  • 11
  • 53
  • 110
4
votes
0 answers

Deploy CodeCommit code to EC2 instance

I just started using AWS CodeCommit and my workflow looks like this: Develop on laptop with local git repo Push changes to CodeCommit remote repo Run deploy script on EC2 instance that executes git clone Is there a way to automatically run step 3…
A_B
  • 1,009
  • 3
  • 15
  • 37