Skip to content

Instantly share code, notes, and snippets.

@rudolphjacksonm
Created March 10, 2023 14:08
Show Gist options
  • Save rudolphjacksonm/cda182f709f91c10394299df8a81123b to your computer and use it in GitHub Desktop.
Save rudolphjacksonm/cda182f709f91c10394299df8a81123b to your computer and use it in GitHub Desktop.
Script for creating workloads in the AWS Well-Architected Tool
#!/bin/bash
set -euo pipefail
source config/test_workload.env
source helpers/lib.sh
main() {
aws wellarchitected create-workload \
--account-ids "${ACCOUNT_IDS}" \
--architectural-design "${ARCHITECTURAL_DESIGN}" \
--aws-regions "eu-west-1" "eu-west-2" \
--description "${DESCRIPTION}" \
--environment "${ENVIRONMENT}" \
--industry "${INDUSTRY}" \
--industry-type "${INDUSTRY_TYPE}" \
--lenses $LENSES \
--pillar-priorities $PILLAR_PRIORITIES \
--review-owner "${REVIEW_OWNER}" \
--workload-name "${WORKLOAD_NAME}"
}
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment