Comments (6)
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.
Upon digging through the logs I found:
denied: User: arn:aws:sts::<ACCOUNTID>:assumed-role/DataQualityWorkflowsPipe-IamRoles-JC-CodeBuildRole-27UMBE2B38IO/AWSCodeBuild-5f5cca70-b5d1-4072-abac-ab48b3d387ed is not authorized to perform: ecr:CompleteLayerUpload on resource: arn:aws:ecr:us-west-1:<ACCOUNTID>:repository/dataqualityworkflows-spades
I've added 5 tools, fastp, fastqc, megahit, spades and bbtools and the other will push to ECR but spades will not; and I am not sure why? Any assistance would be grateful.
Here are the sections of the yaml files I create.
StackBuildContainerSpades:
Type: "AWS::CloudFormation::Stack"
Properties:
Parameters:
Project: !Ref ProjectLowerCase
ImageName: spades
ImageTag: "3.15.3"
BuildSpec: ./containers/buildspec.yml
ProjectPath: ./containers/spades
CodeBuildRoleArn: !GetAtt IamRoles.Outputs.CodeBuildRoleArn
UseProjectPrefix: "yes"
TemplateURL:
Fn::Sub:
- ${TemplateRootUrl}/container-buildproject.cfn.yaml
- TemplateRootUrl:
Fn::Sub:
- "https://${ZoneBucket}.s3.${AWS::Region}.amazonaws.com/zone"
- ZoneBucket:
Fn::ImportValue:
!Sub ${ZoneStackName}-ZoneBucket
...
- Name: Spades
ActionTypeId:
Category: Build
Owner: AWS
Provider: CodeBuild
Version: "1"
Configuration:
ProjectName: !GetAtt "StackBuildContainerSpades.Outputs.Name"
InputArtifacts:
- Name: SourceStageOutput
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.
Hey Daniel,
I'm not the developer of this solution but I think that the developers did not planed that you use their solution that way.
See issue: #2
Am I right that you are trying to modify directly the files that are present in this repo ?
Here is how I added my private ECR images and how I think the developer would rather do:
Deploy the stacks using the files provided in this repo, without modification, that I think you managed.
Then you will have in your CodeCommit two repos: "Code" and "Pipe". You should clone these repos and make your own customizations there.
"Pipe" is the repo that deploys the resources that are necessary for "Code" to operate. If you have a look into CodePipeline, you have the "CodePipeline" that for the moment only builds the code and the Docker images defined in the vanila project. So you must modify these so that your new Docker images are built.
To do so you modify main.cfn.yaml in "Pipe" CodeCommit and that's where you add your "StackBuildContainerSpades". Then at the end of the same file you modify the code pipeline so that you include the new stack in the build phase. Once pushed you will see that the CodePipeline now has the unbuilt Spades block in the build phase.
Now you need to add a new folder in the "Code" repo: containers/spades/ and write the Dockerfile there. If everything is in order, next time the Pipeline "Code" will run, this file will be read and the spades container built into ECR. As this is use case is already planed in the vanilla project, you should not need to modify any IAM role. (all ecr rights are already included in the CodeBuildSeviceRole of the "Pipe" repo). In the main.cfn.yaml, you will have to define the Batch job definition based on the spades container however.
At least that's how I managed to build my own custumized solution and I think was the intended use. I hope this is more or less clear.
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.
First off thank you so much, I believe I am now on the right path!
However, I am now running into an issue where the new docker containers are not being built and if I trigger them manually by clicking Start Build
from the web UI I get the following error:
Build failed to start. The following error occurred: ArtifactsOverride must be set when using artifacts type CodePipelines
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.
I think you can't build the images from CodeBuild because you have defined an artifact that must come from CodePipelines. Can you push a change to your "Code" CodeCommit" or release a change to the "Pipe" CodePipeline tools ?
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.
@sachalau - I don't think I am following. I followed the PFD guide and first updated the GenomicsWorkflowPipe
repo, I modified main.cfn.yml
like I have shown above by added StackBuildContainerSpades
and then under the Codepipeline
section added a new section for Spades
.
I am not sure what to do next.
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.
Related Issues (12)
- Issues when executing build-s3-dist.sh HOT 6
- Multiple Input files have the same name.
- 403 downloading s3 assets HOT 1
- lacking lambda permissions for Cloudformation Zone role?
- Error while downloading sample files HOT 2
- Deploy customized solution HOT 10
- [Errno 28] No Space left on device HOT 2
- Deployment fails at setup in the stack formation HOT 2
- Is there any way to increase the VCPU and Memory when starting a state machine? HOT 7
- Where in the code can I increase the size of the persistant EC2 volume? HOT 2
- No Space left on device HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genomics-secondary-analysis-using-aws-step-functions-and-aws-batch.