Questions tagged with AWS CodeCommit
Content language: English
Sort by most recent
AWS CodePipeline custom stage to read config file and call external service endpoint
Hi All, I'm using AWS CodePipeline with CodeBuild & CodeCommit . I want to add custom stage and there I need to read configuration file & send that data to external service endpoint. Is there any option to achieve this using CodePipeline? Please guide me through this.
X-Ray not working like expecting
The idea is the following: * Codecommit has a notification rule. * Notification's target it's an sns topic. * The topic's target is a lambda function. * Minimally I want lambda X-Ray trace when the notification occurs. If all trace better. I post a message from the SNS Topic console, the X-Ray trace is generated with SNS and Lambda. However, if I trigger a notification, the trace is not generated (Lambda runs correctly). I would like to know if I can make the complete or partial trace be generated when generating a notification in CodeCommit. # Update My lambda logs insights: * Post message from SNS Topic:```"_X_AMZN_TRACE_ID": "Root=1-62gd6bfa-6ag9233f49fe8faf6ef7ed16;Parent=4b19513e742ad199;Sampled=1"``` * Codecommit notification: ```"_X_AMZN_TRACE_ID": "Root=1-62d56c36-3bg3f6fbaa075b171b9fdba6;Parent=2f5f68ffyf25388e;Sampled=0"``` My lambda Function has active tracing, and has permissions, but I don't know why the second case don't get sampled. It should be tracing all the invocations, being sampled or not sampled...
Pull requests wrongly marked as "Merged"?
We like to create pull requests early for new branches, meaning the developer who makes the branch will immediately create one or more pull requests to signal the intended destination branch(es) (for example both "dev" and "main" for hot-fixes). While the task is in progress, the related, pending pull request(s) are marked with status "Open" But sometimes a pull request changes status to "Merged" even before the developer has had time to push any changes. However, when we click on the "Changes" tab, we see that nothing has actually been merged, and instead there is a message saying: > Differences between the source branch and the destination branch cannot be displayed for this pull request. The branch specified as the destination branch includes all the changes in the branch specified as the source branch as well as additional changes. You might have mixed up which branch should be the source, and which branch should be the destination. We suspect this happens when another pull request is being merged, and that this triggers some kind of global check of all pull requests in the repo, to see if there is a diff, and if a pull request has no diff, AWS CodeCommit "helps" us clean up our "obsolete" PRs. However, to us this is just counter-productive and confusing: Pull requests that nobody has merged are marked as merged, when the exact opposite is true. Had there been at least another status, like "Nothing to merge", then it would have been less mysterious, but still very counter-productive: Whenever this happens, we need to click on the "Changes" tab to make sure that this is actually a "Nothing to merge" status, and create a NEW pull request for anything that has been pushed to the branch after this unwanted "clean up". Question: Is there a way to avoid early pull requests from being updated automatically like this, so that it will be entirely up to the developers to decide when a pull request should be marked as merged (i.e. have it marked as merged when it is actually merged, and only then)? Thanks, and best regards, wab
Creating our own codec for streaming audio on AWS
We want to create our own codec to stream the audio files on our app(developing stage) which will support high resolution audio files , does AWS provide containers to create our own codec and stream the audio files in our own codec. For example : if we create our codec say .xyz and we want that the audio files are saved in S3 can run on this codec by media converter. can that happen ? So, in conclusion can we create a container that can run our codec for the same with the help of **creating a new transcoding preset** option available in the media convert and will AWS Media Converter, will support our codec to stream those audio files.
Please I confused, I don't know why I got this error in S3 - Codecommit and Cloudformation
I am currently working with this PoC = Automatically build CI/CD pipelines and Amazon ECS clusters for microservices using AWS CDK [https://docs.aws.amazon.com/es_es/prescriptive-guidance/latest/patterns/automatically-build-ci-cd-pipelines-and-amazon-ecs-clusters-for-microservices-using-aws-cdk.html] And I have this error. This is the command I use to launch the deployment cdk deploy --context aws_account=xxxxxx --context aws_region=eu-west-2 --context vpc_nonprod_id=vpc-0b1ad2009aa6d2106 --context vpc_prod_id=vpc-00b4a914c2628a1b2 --context ecssg_nonprod_id=vpc-0b1ad2009aa6d2106 --context ecssg_prod_id=vpc-00b4a914c2628a1b2 --context code_commit_s3_bucket_for_code=cdk-hnb659fds-assets-xxxxxxxxxx-eu-west-2 --context code_commit_s3_object_key_for_code=arn:aws:kms:eu-west-2:xxxxxxxx:key/d92b32f6-d8cb-4429-adcc-d88d2d3f0ec3 --context microservice_name=devops-iris | CREATE_FAILED | AWS::CodeCommit::Repository | xxxxxx-codecommit-id Not Found (Service: Amazon S3; Status Code: 404; Error Code: 404 Not Found; Request ID: GRZCJ67AMTTS1318; S3 Extended Request ID: 3514cWqx2HUsD3cSLgj5zYCEw1IcAp6id5AVbBSDChEnKoFAo lNI0iP1jhMgR8v1Iifktm+dYEU=; Proxy: null) "code_commit_s3_object_key_for_code", I don't have idea, How can I know this value? Cheers Andy
RangeError: Array buffer allocation failed
Hello AWSome folks! I am trying to do the "Build a serverless web application" workshop and I'm on the User Management part. I am on to initialize Amplify CLI by executing the command "`amplify init`" and it is supposed to initialize the project but I am getting this error: `RangeError: Array buffer allocation failed at new ArrayBuffer (<anonymous>) at new Uint8Array (<anonymous>) at new FastBuffer (node:internal/buffer:959:5) at createUnsafeBuffer (node:internal/buffer:1062:12) at allocate (node:buffer:410:10) at Function.allocUnsafe (node:buffer:375:10) at Function.concat (node:buffer:553:25) at Extract.<anonymous> (/home/ec2- user/.nvm/versions/node/v16.15.0/lib/node_modules/@aws-amplify/cli/lib/binary.js:127:37) at Extract.emit (node:events:539:35) at finishMaybe (/home/ec2-user/.nvm/versions/node/v16.15.0/lib/node_modules/@aws-amplify/cli/node_modules/readable-stream/lib/_stream_writable.js:624:14)` What could be causing this?
CodeCommit Git Windows fatal: Failed to write item to store [0x6c6]
Is there a solution for the *fatal* message *0x6c6* that shows up in git-bash for Windows? It's annoying since it appears that operations continue normally other than the "fatal" part. My coworkers using Windows experience the same problem. I've included the full error along with the *GIT_TRACE=1* info. 09:45:39.933420 run-command.c:654 trace: run_command: 'git credential-manager-core store' 09:45:40.042896 exec-cmd.c:237 trace: resolved executable dir: C:/Users/xxxxxxxx/AppData/Local/Programs/Git/mingw64/libexec/git-core 09:45:40.042896 git.c:748 trace: exec: git-credential-manager-core store 09:45:40.042896 run-command.c:654 trace: run_command: git-credential-manager-core store fatal: Failed to write item to store. [0x6c6] fatal: The array bounds are invalid This is a newly setup Win10 Pro system. I'm using the following: git 2.36.1, Python 3.10.4, git-remote-codecommit 1.16, and we use a non AWS identity provider for SSO. $ aws --version aws-cli/2.6.3 Python/3.9.11 Windows/10 exe/AMD64 prompt/off Here's ~/.gitconfig on the affected system. [credential "url pointing to aws codecommit"] provider = generic [protocol "codecommit"] allow = always Here's part of the repo .git/config [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true [submodule] active = . [remote "origin"] url = codecommit::region://repo-name fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master Linux systems don't have this problem.
No such file or directory/.bashrc
Good afternoon dear experts. Help solve the issue. I run the sh file (with rights) through the terminal, I get No such file or directory/.bashrc Google didn't help. I'm beating this wall for the 3rd evening). sh file content: ` source ~/.bashrc cd ~/data python file.py ` Contents of the .bashrc file: ` # .bashrc export PATH="~/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User specific aliases and functi # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/ec2-user/.pyenv/versions/anaconda3-2020.11/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/home/ec2-user/.pyenv/versions/anaconda3-2020.11/etc/profile.d/conda.sh" ]; then . "/home/ec2-user/.pyenv/versions/anaconda3-2020.11/etc/profile.d/conda.sh" else export PATH="/home/ec2-user/.pyenv/versions/anaconda3-2020.11/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<< `
Force New Task Definition Revision to run
I have updated several task definitions and for the life of me I cannot get the latest revisions to run. We are using the AWS code management system, e.g. Code Deploy, Code Commit, etc. Wondering if there is a preferred way to get task definition to run the latest revision. I have tried stopping the service and updating with "Force new Deployment" checked and so far no dice. Any idea what I'm doing wrong?