Skip to main content

Tooling to help manage CloudFormation stacks

Project description

Stacks Helper Scripts

main

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 stackedup-helper-scripts | grep Location | sed -n 's/Location: //p')/stackedup_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

stackedup_helper_scripts-0.0.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

stackedup_helper_scripts-0.0.4-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file stackedup_helper_scripts-0.0.4.tar.gz.

File metadata

File hashes

Hashes for stackedup_helper_scripts-0.0.4.tar.gz
Algorithm Hash digest
SHA256 40bb15f4edcd39ebb5f4ec46b9f1b34cf12bcb9d03407aec9e0c97d248f34cf6
MD5 2d4488bca157d94df559c9af3709fdd0
BLAKE2b-256 dc68bd5d3256ec07403a83b36dae17f379e1c7a27918534a521cdfd418e5e7d5

See more details on using hashes here.

File details

Details for the file stackedup_helper_scripts-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for stackedup_helper_scripts-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 018b944cf8b1492df2f2cd2a9c5d2c243268a5bdf35150c8fd7b7889f4195760
MD5 cda3d12e734fccd322d14cd08a0928a8
BLAKE2b-256 d67a84b9429c2ff227a2e61ab338b04bb54deb64a06a6fe4376de1f971e2fe77

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page