This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# this script will attempt to detect any ephemeral drives and create /dev/ephemeral[0-9] device names | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
METADATA_URL_BASE="http://169.254.169.254/2012-01-12" | |
# figure out the nameing convention |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git name-rev --tags --name-only $(git rev-parse HEAD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When wanting to search for port 7000 (example) you would query the ECS agent endpoint searching for your docker | |
# container by its ID ($HOSTNAME). You can then parse the resulting json yourself, or use JQ to find the HostPort | |
# curl -sS http://172.17.0.1:51678/v1/tasks?dockerid=$HOSTNAME \ | |
# | jq '.Containers[].Ports[] | select (.ContainerPort == 7000) | .HostPort' | |
# The following will create env vars identifying the public port numbers for mapped private ports | |
# (example assuming docker is exposing 80,443 and 8080) | |
# | |
# PUBLIC_PORT_80=32777 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
CfnDebug: | |
Description: Enable Debug Mode | |
Type: String | |
AllowedValues: [ "true", "false" ] | |
Default: "true" | |
Conditions: | |
isFalse: !Equals [ 'true', 'false' ] | |
isDebug: !Equals [ 'true', !Ref CfnDebug ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==== {section}/{label} | |
{description} + | |
Required: {required} + |