Does AWS CodePipeline Project support GitSubmodulesConfig - amazon-web-services

CodeBuild supports initializing submodules. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-gitsubmodulesconfig.html
Is there similar support for Git Submodules in CodePipeline?
We do use a buildspec.yml file. Is there a way I can leverage "GitSubmodulesConfig" in the buildspec file?

Related

Add a secondary source to AWS pipeline that use AWS SAM

I am very new to AWS's codebuild, pipelien and SAM. I know that I can set up codebuild to bring in two git repositories similar to this example. I was wondering if there is a way that I can update a SAM project's Codepipeline to use a secondary git source?

AWS CodeCommit does support Git LFS?

I have existing project repo in gitlab. Since the gitlab is running in the server, we have the lfs objects in certain directory. My Doubt is AWS Codecommit does not have seperate server to store any lfs configurations as gitlab or bitbucket. I've to configure the lfs directory in AWS CodeCommit. My Question is "Does AWS CodeCommit supports Git LFS?". If yes,can someone explain how to configure AWS CodeCommit with Git LFS?

Does CodeBuild only uses "Source" for grabbing buildspec if CodePipeline is configured to run the build job?

In my CodeBuild job config, source is connected to my BitBucket.
In my CodePipeline config, source is connected to my BitBucket through CodeStar (Full Clone perms).
I am using CodePipeline to use this build job in my Build stage so I'm under the assumption that CodeBuild build job would no longer need the source stage to be configured since CodePipeline is using source connection itself.
Is the source config in CodeBuild only to grab the buildspec file? (Since CodeBuild requires you to not put a buildspec file name if there is no source (even though WE know that there IS a source through CodePipeline).

AWS CodeBuild pipeline CodeCommit git repo path

If I configure a CodeBuild pipleline as using the CodeCommit Source provider, what is the path of the source code (git repo) to refer to in the buildspec.yml commands?
Use the predefined environment variable "CODEBUILD_SRC_DIR". Details: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html

Deploying an AWS CodeStar project on a different account

AWS CodeStar lets you spin up CodePipelines and CodeCommit repos to support your project. If I want to build a project in CodeStar and then take the resultant package, how can I deploy that package into another account?
For example, the basic "Python Web Service Lambda" CodeStar template generated these files,
$ ls ./ -R
./:
buildspec.yml index.py README.md template.yml tests
./tests:
test_handler.py
This notably lacks the templates for setting up the CodePipeline that deploys the code. Thus I am left to figure out how to deploy it myself.
How can I deploy the CodeStar templates onto a different AWS account?
You can not. Currently (2019-01-10) The CodeStar functionality is limited. CodeStar Projects can only be created via the web console and can not be imported / exported / codified. Sadly CodeStar is only a web console feature at this time.