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
2
votes
1 answer

What does "13:get remote references: create git ls-remote: exit status 128," error mean in Gitlab when creating a mirrored repository?

I am currently running a pipeline in Gitlab and I am trying to mirror a repo on Codecommit. My .gitlab-ci.yml file contains those commands : mirror_id=$(curl --request POST --data…
2
votes
1 answer

Init CodeCommit repository with seed-code stored in S3 using CDK

I'm trying to convert the MLOps template for model building, training, and deployment CloudFormation template into a CDK project so I can easily update the definitions, synth the template and upload it into CloudCatalog in order to be used as a…
2
votes
0 answers

Mark a CodeCommit Pull Request as Draft?

I am looking for a way to avoid other dev to merge my pull request before it's ready in CodeCommit, similar to marking a Pull request as a Draft: in GitLab so that it can not be merged unless the Draft: or WIP: keyword is erase from the title (see…
2
votes
0 answers

How to use archive be more than 20 MB when I create AWS codeCommit via AWS CloudFormation?

I want create a new git repository (AWS codeCommit) with any source from a zip file. I follow AWS official documentation here but I do not find any restriction (20 MB). Cloudformation: MyCodeCommit: Type: AWS::CodeCommit::Repository …
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
2
votes
1 answer

Can't start Sagemaker Notebook Instance with a CodeCommit repo

I linked a repo in CodeCommit to Sagemaker. However when I try to start an instance with that repo it fails and I get a message: fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MyRepo/': The requested URL returned…
2
votes
1 answer

AWS cross account access for code commit in build AWS code job source

I have two AWS accounts A, B. All my code commit repositories are present in account A. Now I want to create the AWS code Build job in account B for repositories in account A. I am trying to figure out to get the list of AWS repositories in account…
Wagh
  • 4,202
  • 5
  • 39
  • 62
2
votes
1 answer

What does red text on a green line mean in a AWS Pull Request diff?

Today I saw this for the first time in a pull request diff in AWS. The line is green and with a plus, so it is added. But the text is red and with slightly red background. The file is a SpecFlow (*.feature) file. Does it signify spell-checker, or…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
2
votes
2 answers

AWS Codebuild: I want to use one project to run multiple repository

Whenever a Pull Request is created in a repository in code commit, I want to run a code Build on the same repo. I have multiple repositories having PR's created for each and I want to use the single/same code build project to run the different…
2
votes
2 answers

Unable to negotiate with 52.119.168.71 port 22 when setup SSH AWS connections on Window 11

I am following this link to setup ssh codecommit AWS Aws setup doc At the step 10 PS C:\Users\mrdar\.ssh> ssh git-codecommit.us-west-2.amazonaws.com The authenticity of host 'git-codecommit.us-west-2.amazonaws.com (52.119.161.60)' can't be…
neyone315
  • 33
  • 5
2
votes
0 answers

I cloned a github repo and trying to push it to Codecommit but I'm getting a 403 error

I'm new to AWS and I'm trying to take advantage of Codecommit. After following this article step by step, I'm stuck on the part where I successfully mirrored the repo I want to migrate to CodeCommit but when I try to push it using the following…
2
votes
0 answers

Is it possible to get last commit info for specific file in codecommit using python?

i am trying to create function that can give me specific file last changed date from AWS codecommit. can anyone suggest something so i can move ahead with this?
2
votes
2 answers

How to dynamically generate .env file for Laravel in AWS CodeCommit and CodePipeline

I am using AWS for my Laravel Application but I am having a difficult time with dealing with my .env file. I make use of CodeCommit and CodePipeline. I know that my .env file should NOT live inside my repo so my question is, is there a way I can get…
2
votes
1 answer

How to deploy to multiple environments using CodeCommit and Code Pipeline

I'm using CodeCommit as my repository for my code, as code-commit enables you to deploy your code to cross-accounts in another environment. I have set up a lambda function in my QA environment in the template.yaml using AWS SAM. Where would I define…
2
votes
0 answers

AWS codePipeline: go get: unknown revision v1.0.0

I have created an API using AWS SAM and Golang. This API is using an private module, both repos are present on codecommit. My buildspec.yml file is like this : phases: install: commands: - echo installing SAM ... - pip install…
DEV
  • 2,106
  • 3
  • 25
  • 40
2
votes
2 answers

Conditionally execute stage in AWS Codepipeline

I would like to conditionally execute certain stage in AWS Codepipeline depending on that if I put certain file on repo location. So, if I put "some_file.txt" on certain location in repo, I want for Codepipeline to check existence of this file and…