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.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stackedup_helper_scripts-0.0.5.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for stackedup_helper_scripts-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3dc2811ff5f0658b880f6d95d34799e059584e603cd874b49ccb1988215a4590
MD5 63c58ea5ec9bc9e6d8a6765fc81d4b27
BLAKE2b-256 58febbfa2fa2218f1fedb74886fea221a6ac0bbd1ae1e1df164ee6ae4b189770

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackedup_helper_scripts-0.0.5.tar.gz:

Publisher: pypi-publish.yml on ombu/stackedup-helper-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for stackedup_helper_scripts-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e834b134be55056acb9b7ae5caf5e5f3b0b6b2e2f8e44ae42835ac7e48543da8
MD5 e5fea688bc6d99baf5b59b3a6b3202b3
BLAKE2b-256 55a7650d8cdb82f8d2aae0dc9310a37f05a48cbaf045c3b65ebcdc6d1df3641b

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackedup_helper_scripts-0.0.5-py3-none-any.whl:

Publisher: pypi-publish.yml on ombu/stackedup-helper-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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