aws-codebuild

AWS Codebuild fails while downloading source. Message: reference not found

爷,独闯天下 提交于 2019-12-06 04:17:59
A CI/CD pipeline that utilizes AWS Codebuild that has been functioning normally for months suddenly started failing when build's are triggered using a git tag as the source version. Builds triggered via pull request (pr/#) continue to work correctly. Any help would be much appreciated! I work on the CodeBuild team. We have rolled back a change that may have caused this behavior. If you try your build again, it should succeed. 来源: https://stackoverflow.com/questions/49564672/aws-codebuild-fails-while-downloading-source-message-reference-not-found

AWS CodeBuild does not work with Yarn Workspaces

走远了吗. 提交于 2019-12-05 21:26:11
I'm using Yarn Workspaces in my repository and also using AWS CodeBuild to build my packages. When build starts, CodeBuild takes 60 seconds to install all packages and I'd want to avoid this time caching node_modules folder. When I add: cache: paths: - 'node_modules/**/*' to my buildspec file and enable LOCAL_CUSTOM_CACHE , I receive this error: error An unexpected error occurred: "EEXIST: file already exists, mkdir '/codebuild/output/src637134264/src/git-codecommit.us-east-2.amazonaws.com/v1/repos/MY_REPOSITORY/node_modules/@packages/configs'". Is there a way to remove this error configuring

Programmatically unset encryption for a file in aws s3

 ̄綄美尐妖づ 提交于 2019-12-05 10:26:02
I'm performing an android build via aws code build . The apk files generated are by default applied with server side encryption (aws-kms) I can unset the encryption manually by clicking as shown below from the s3 bucket by unselecting ASW-KMS which gives the following popup Here selecting None option manually will make the link downloadable. I want to achieve this programmatically . I have already tried adding permissions as mentioned here . Also did experiment a fair bit with python boto3. However didn't meet with any success so far. Thanks in advance! OK, I got a workaround for this. After

AWS CodePipeline Doesn't upload artifacts to AWS S3

牧云@^-^@ 提交于 2019-12-04 05:16:18
As an effort to automate the (Android) build and test process, I configured an AWS code pipeline that will 1st get the code from GitHub and trigger a build (via aws codebuild ) Build is shown as completed successfully but the artifacts (apk file) generated as a result of the build process isn't uploaded to the s3 bucket (public bucket). The logs clearly say the upload is successful as seen in the screenshots attached The codepipeline as well shows everything is successful as attached However, if I run aws codebuild project directly from the aws codebuild screen , it does upload the artifact

How to read SSM parameters when using AWS Codebuild?

谁都会走 提交于 2019-12-03 14:25:08
I'm currently successfully using codebuild for simple build tasks (in a non-vpc configuration). But now I'm trying to run a build task that reads an SSM parameter value, and it's failing because it can't load any credentials, the apparent cause being: com.amazonaws.auth.InstanceProfileCredentialsProvider@5754b242: Unable to load credentials from service endpoint The IAM service-role I've allocated to the codebuild project does have ssm:GetParameters permission for the parameter that I'm trying to read (and if that were the problem, I'd expect to see an unauthorized message, rather than unable

Use appropriate ECS credentials on CodeBuild maven job

无人久伴 提交于 2019-12-01 11:21:39
问题 I am trying to use the CodeBuild service role in my mvn command, but it does not seem to be picking up the appropriate IAM permissions. I am using s3-wagon-private plugin which does appear to use a recent version of DefaultAWSCredentialsProviderChain that includes EC2ContainerCredentialsProviderWrapper , so I thought it should use the CodeBuild role on the CodeBuild container. That role has the appropriate permissions to the S3 repo I am trying to access with the s3-wagon-private. But it