Deploying artifacts into AWS S3 buckets
In this recipe, we’re going to look at deploying to AWS. Bitbucket Pipelines has a variety of pipes that can deploy to specific AWS component services, depending on the type of build artifact.
Let’s look at what’s involved in deploying our build artifact into an AWS S3 bucket. This is a typical use case of deployment using Bitbucket Pipelines.
Getting ready
When setting up the pipe to deploy to an AWS S3 bucket, the only thing you need to do is set up the following variables:
AWS_ACCESS_KEY_ID
: Your AWS access key.AWS_SECRET_ACCESS_KEY
: Your AWS secret access key. This should be saved as a secured variable.AWS_DEFAULT_REGION
: The default AWS region of your resource.
Now that these have been defined, let’s look at setting up the pipe.
How to do it…
At this point, we need to add our pipe configuration to the script
section of our bitbucket-pipelines.yml
file. Let’...