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 scripts
	@ln -s -f -n ${PKG_LOCATION}/tasks tasks
	@ln -s -f -n ${PKG_LOCATION}/templates templates

Add /infrastructure/scripts to .gitignore

Templete changes:

Rehome CodeUri in Properties sections to refer to the infrastructure/scripts directory.

Types of scripts

account_cost

Account cost alam features a lambda that will get the current estimated costs of an account and alert a specified SNS Topic.

cloudformation_update

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

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

This script sends a notification to SNS when an ECR image is built.

email_notification

This script sends email to recipients from an SNS topic.

force_deploy

When a ECS task is configured to have force deployment of the current 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.

instance_refresh

This script refreshes the cloudformation stack with a new AMI.

reset_task_notification

This script sends a SNS notification when the reset task is requested.

slack_notification

This script sends a Slack notification to a webhook endpoint from an SNS topic.

sns_relay

SNS Relay will reformat an alarm messages sent when an alarm triggers and hand it off to another SNS Topic for delivery.

web_deploy

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.15.tar.gz (39.0 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.15-py3-none-any.whl (84.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for stackedup_helper_scripts-0.0.15.tar.gz
Algorithm Hash digest
SHA256 1da29bbd8592e08b8dce3b17d4e51d38196a71f09c2b02e5020db6eead1102c3
MD5 55bd7bd56fbc7239aa170960666c6cce
BLAKE2b-256 4f28ec758a3813671cef4d3034f2f4e041a1976e490c124e9fa3ed7d0ec0a897

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackedup_helper_scripts-0.0.15.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.15-py3-none-any.whl.

File metadata

File hashes

Hashes for stackedup_helper_scripts-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c616af66958cf64b43b1f7c6a2cf2f38f665dae3e018899423028501cbb6fad3
MD5 d200cd26b2124b5b2050be550679c71f
BLAKE2b-256 2ccf3c474b7c77930bb82be8cb58f8f9ef73ee76b44d3f97fec9e3ed6cb7416c

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackedup_helper_scripts-0.0.15-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