AWS CLI v2 for BOSH deployments
Go to file
Stark & Wayne CI Bot 9af7668b4f Updated compiled releases for ubuntu-bionic/1.107 2022-09-30 05:31:45 +00:00
.final_builds release v1.0.6 2022-09-30 03:08:12 +00:00
ci release v1.0.7 2022-09-30 05:30:10 +00:00
config bump aws cli version to latest 2022-09-29 23:23:11 -05:00
jobs/awscliv2 support vars ((config_file)) and ((credentials_file)) 2020-04-05 19:17:45 +10:00
manifests Updated compiled releases for ubuntu-bionic/1.107 2022-09-30 05:31:45 +00:00
packages initial awscliv2 package 2020-04-05 13:14:05 +10:00
releases/awscli2 release v1.0.7 2022-09-30 05:30:10 +00:00
src Initial scaffold 2020-04-05 10:59:32 +10:00
.gitignore add manifest to git repo 2020-04-05 19:31:29 +10:00
LICENSE.md Initial scaffold 2020-04-05 10:59:32 +10:00
README.md Update of README.md 2022-02-04 16:49:01 -06:00
awscliv2-blob-version.sh modify the script 2022-09-27 15:17:06 -05:00
update-awscliv2.sh modify the script update-awscliv2.sh to comply with awscli2 new requirement 2022-01-31 11:47:21 -06:00

README.md

AWS CLI v2 for BOSH deployments

Add and configure aws CLI into your BOSH deployments.

source /var/vcap/jobs/awscliv2/env
aws s3 ls

Version Bump process

Creation of the blobs directory

Update the aws CLIv2 download link in the script update-awscliv2.sh to get the current version. Run ./update-awscliv2.sh which will create the blobs directory with the downloaded file.

  1. Check the version of aws cli in blob

Run the script awscliv2-blob-version.sh.

Notes: For M1 Macbook users modify the script as indicated:

#!/bin/bash

ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $ROOT

rm -rf tmp/awscli
mkdir tmp/awscli
unzip -qq -d tmp/awscli blobs/awscliv2/awscliv2.zip

# For M1 Mac users add  “--platform linux/x86_64” after “docker run”
docker run -ti -v $PWD/tmp/awscli:/awscli ubuntu /awscli/aws/dist/aws --version
# rm -rf tmp/awscli

Creation of a Dev Release

  • Create a Dev release: bosh create-release --force
  • Test the Dev release by uploading it to a test enviroment bosh upload-release /path/to/dev/release.
  • Edit a BOSH deployment manifest pointing to the Dev release.

Creation of the Final Release

Uploading of the blobs

Blobs should be saved into release blobstore before cutting a new final release. Create a config/private.yml as follow:

---
blobstore:
  options:
    access_key_id: <access_key_id>
    secret_access_key: <secret_access_key>

Upload the blobs by running: bosh upload-blobs

Commit

Commit all the changes made in the directory

Compiled Release and Final Release

The compiled releases are done through the concourse pipeline. They are done against stemcells. To cut a compiled release against ubuntu-xenial or ubuntu-bionic do the following:

  1. Check the following files pipeline.yml, ci/scripts/export-release, ci/scripts/use-compiled-releases and manifests/awscliv2.yml.
  2. if the desired stemcell is presents in them go to 5. If no, go to 3.
  3. Modify the stemcell in the pipeline.yml, ci/scripts/export-release, ci/scripts/use-compiled-releases and manifests/awscliv2.yml.
  4. run the script ./repipe
  5. Use the Concourse UI to run the builds
  6. Start generating compiled release under the Compile-release group.