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 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stackedup_helper_scripts-0.0.13.tar.gz.
File metadata
- Download URL: stackedup_helper_scripts-0.0.13.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e7a57c0f08df3e9a19e002b6d3bbe96657554502b9f73a617f3544a2d4be2d
|
|
| MD5 |
abade0de5b98cd0eb602ecb3972807dc
|
|
| BLAKE2b-256 |
ac8ee4744f515e29d002aca6bad4c42c6c606f829740edc026fea0f5667601cd
|
Provenance
The following attestation bundles were made for stackedup_helper_scripts-0.0.13.tar.gz:
Publisher:
pypi-publish.yml on ombu/stackedup-helper-scripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stackedup_helper_scripts-0.0.13.tar.gz -
Subject digest:
32e7a57c0f08df3e9a19e002b6d3bbe96657554502b9f73a617f3544a2d4be2d - Sigstore transparency entry: 484260750
- Sigstore integration time:
-
Permalink:
ombu/stackedup-helper-scripts@a9f31b67ff5295bdab46125965b7846691bc288d -
Branch / Tag:
refs/tags/0.0.13 - Owner: https://github.com/ombu
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@a9f31b67ff5295bdab46125965b7846691bc288d -
Trigger Event:
push
-
Statement type:
File details
Details for the file stackedup_helper_scripts-0.0.13-py3-none-any.whl.
File metadata
- Download URL: stackedup_helper_scripts-0.0.13-py3-none-any.whl
- Upload date:
- Size: 83.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdbf452ea096ec308c57847f77828f74d12f9079fc672565bba7f242dd2a8185
|
|
| MD5 |
7d7a9d7b829bf542ea9de5cac6ab48f0
|
|
| BLAKE2b-256 |
dc97b0d983b3122cdaaca7768b6319277bb7e488dd3d7ddb5e6986b07978b3ce
|
Provenance
The following attestation bundles were made for stackedup_helper_scripts-0.0.13-py3-none-any.whl:
Publisher:
pypi-publish.yml on ombu/stackedup-helper-scripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stackedup_helper_scripts-0.0.13-py3-none-any.whl -
Subject digest:
fdbf452ea096ec308c57847f77828f74d12f9079fc672565bba7f242dd2a8185 - Sigstore transparency entry: 484260755
- Sigstore integration time:
-
Permalink:
ombu/stackedup-helper-scripts@a9f31b67ff5295bdab46125965b7846691bc288d -
Branch / Tag:
refs/tags/0.0.13 - Owner: https://github.com/ombu
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@a9f31b67ff5295bdab46125965b7846691bc288d -
Trigger Event:
push
-
Statement type: