From 6ab56b9f5ece5cf13ddffcded1907d8ddd5346f208f7c4cf81c2519a020c5fc0 Mon Sep 17 00:00:00 2001 From: Rijndael Date: Thu, 29 Oct 2026 00:14:49 +0000 Subject: [PATCH] code stuff --- Code/_CodeBuild.md | 37 +++++++++++++++++++++++++++++++++++++ Code/_CodeCommit.md | 11 +++++++++++ README.md | 7 +++++-- 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 Code/_CodeBuild.md create mode 100644 Code/_CodeCommit.md diff --git a/Code/_CodeBuild.md b/Code/_CodeBuild.md new file mode 100644 index 0000000..72acd0d --- /dev/null +++ b/Code/_CodeBuild.md @@ -0,0 +1,37 @@ +# CodeBuild +- A fully managed build service in the cloud. +- Compiles your code, runs unit tests, and produces artifacts that are ready to deploy. +- Eliminates the need to provision, manage, and scale your own build server +- Provides prepackaged build environments for popular programming languages and build tools such as Apache, Maven, Gradle, and more. +- You can also customise environments to use your own build tools +- Scaled automatically to meet peak build requests. + +## Workflow +1. Trigger a build + * You can trigger a build with AWS Console, CLI, SDK or [[_CodePipeline|CodePipeline]] trigger (like pushing to `main`). +2. Passes the code onto CodeBuild +3. You give it a `buildspec.yaml` file, which is generally part of your code base. + * You can override it with other build commands. +4. Push into a bucket, or any other AWS SDK action (I think?) + +## Build Environments +The Docker images that run the CodeBuild, can be managed by AWS or you. If you need specific software, you need to make an image and upload it to ECR and reference it in the pipeline. + +## `buildspec.yaml` +- Provides the build instructions. +- Needs to be in the root of your project folder (`/buildspec.yaml`) (by default). + +### Phases +1. `install`: only for installing packages in the build environment. (Code gets pulled before this step.) +2. `pre_build`: commands that run before building. +3. `build`: commands that you run during the build. +4. `post_build`: commands you run after the build. + +### Artifacts +Where we can find the build output +How it prepares it for uploading to S3 output bucket. +Basically Zips that go to S3, or ECR images, anything else that SDK can touch. + +## Use Cases +- Generating static pages to host on S3. +- Run test code & report test coverage. For example, a developer needs to ensure their code passes all tests before being allowed to make/merge a PR. diff --git a/Code/_CodeCommit.md b/Code/_CodeCommit.md new file mode 100644 index 0000000..9e4bc71 --- /dev/null +++ b/Code/_CodeCommit.md @@ -0,0 +1,11 @@ +# CodeCommit +A fully-managed source control service that hosts secure Git-based repositories. (GitHub for AWS) + +## Special features +- In scope with many compliance programs (HIPPA) +- Repositories encrypted at rest & in transit +- Can handle repositories with large numbers of files or branches, large file sizes and lengthy revision histories. +- No limit on the size of your repositories or on the file types you can store. +- Keeps your repositories close to your production resources in AWS Cloud, which helps to increase the speed and frequency of your development life-cycle. +- Uses IAM to control which AWS users have access to which repositories. + diff --git a/README.md b/README.md index b149e0f..4b5bc0d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ -# README.md +# README - [[_CloudFront|CloudFront]] - [[_Lambda|Lambda]] -- [[_X-Ray|X-Ray]] \ No newline at end of file +- [[_X-Ray|X-Ray]] +- Code: + - [[_CodeCommit|CodeCommit]] +