-
AWS S3 CLI: How to use wildcards and filters to copy files?
Introduction
AWS S3 CLI doesn’t support regular expressions with the path parameter. To use regular expressions with the AWS S3 CLI, you can use the
--include
and--exclude
parameters to filter the files that you want to copy. These options allow you to specify a regex pattern to filter the files. AWS will only return the files that match the pattern.In this tutorial, we will look at how filters work and how we can use them to copy files that match a pattern.
-
AWS S3 CLI: How to set the Content-Type header when uploading a file?
Introduction
The
Content-Type
header is used to indicate the type of content that is being sent. This is useful for the browser to render the content correctly. For example, if the content is a text file, the browser will render it as a text file. If the content is an image, the browser will render it as an image.If you are using AWS S3 to host your static website, you can set the
Content-Type
header for each file. This will ensure that the browser renders the content correctly.In this tutorial, we will look at how we can use the AWS S3 CLI to set the content-type when uploading a file.
-
How to enable full GitHub clone with AWS CodePipeline?
Introduction
AWS CodePipeline is a managed service from Amazon Web Services (AWS) that allows developers to build, test and deploy their applications. It is a continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates. CodePipeline automates the build, test, and deploy phases of your release process every time there is a code change, based on the release model you define.
In this tutorial, we will look into how you can enable entire Git clone with AWS CodePipeline.
-
How to stop AWS CodeBuild execution after failure?
Introduction
AWS CodeBuild is a managed service from Amazon Web Services (AWS) that allows developers to build applications without having to manage servers. This makes it easier for them to build, test and deploy their services.
Developers can define their build specification (buildspec) using a collection of commands and settings in a YAML file. This file is called
buildspec.yaml
and is stored in the root of the source code repository. Thebuildspec.yaml
file defines the build environment, the build commands, and the build artifacts. You can read more about thebuildspec.yaml
file here.In this tutorial, we will look into how you can detect a failure during the
Build
phase of your CodeBuild build and stop the execution of the build. -
How to fix Docker Rate Limiting error on AWS CodeBuild?
Introduction
AWS CodeBuild is a managed service from Amazon Web Services (AWS) that allows developers to build applications without having to manage servers. This makes it easier for them to build, test and deploy their services.
CodeBuild is frequently used with Docker to build images that are eventually deployed using AWS Elastic Container Service (ECS) or AWS Elastic Kubernetes Service (EKS). One of the most common issues developers run into while using Docker with CodeBuild is being rate limited by Docker while trying to pull an image from Docker Hub. The error message looks something like this:
toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
In this tutorial, we will look into why this error occurs and how you can solve it.