Tooling to help manage CloudFormation stacks
Project description
Stacks Helper Scripts
This repository contains various helper scripts for deploying with OMBU infrastructure Cloudformation packaged templets.
The target Python version of these scripts is documented in .python-version
.
Adding to infrastructure
Add to the requirements.txt
with:
git+ssh://git@github.com/ombu/stacks-helper-scripts.git@<version>
Add to install MakeFile command:
@$(eval PKG_LOCATION := $(shell pip show stacks-helper-scripts | grep Location | sed -n 's/Location: //p')/stacks_helper_scripts)
@ln -s -f -n ${PKG_LOCATION} scripts
Add /infrastructure/scripts
to .gitignore
Templete changes:
Rehome CodeUri
in Properties
sections to refer to the infrastructure/scripts
directory.
Types of scripts
cloudformation-update-script
This script sends a notification to SNS when an ECS deployment is detected from a CloudFormation update. A starting deployment notification to the SNS topic then send another notification once the ECS deployment is complete.
cluster-lifecyclehook-script
Auto Scaling Lifecycle Hook to drain Tasks from your Container Instances when an Instance is selected for Termination in your Auto Scaling Group.
deploy-notification-script
This script sends a notification to SNS when an ECR image is built.
email-notification-script
This script sends email to recipients from an SNS topic.
reset-task-notification-script
This script sends a SNS notification when the reset task is requested.
slack-notification-script
This script sends a Slack notification to a Webhook endpoint from an SNS topic.
web-deploy-script
When a ECS task is configured to use automatic deployment of the latest tag this script will restart the ECS task and send a starting deployment notification to the SNS topic then send another notification once the ECS deployment is complete.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stackedup_helper_scripts-0.0.2.tar.gz
.
File metadata
- Download URL: stackedup_helper_scripts-0.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263ec0f0e0d572efe323b7c891557e5a86980c5192afa2d555ff95626419bb2f |
|
MD5 | c33c5cc4d8122efa4034ce754d2d7ffd |
|
BLAKE2b-256 | ea27935fd5182b2a561d8c6c57b7bb349cb76709da76255fdfedaf1807eb91cc |
File details
Details for the file stackedup_helper_scripts-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: stackedup_helper_scripts-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9825ece5ad29c6a9c8c57b970bb77af68d4fc1c74ec1134f7b31e7f65f5eac |
|
MD5 | 8a04dadac5d644e857f33c5f97d86215 |
|
BLAKE2b-256 | 58bbfaedb1abd5c365648fcba4036ed255c655007d831f99df9469b326884847 |