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
{ | |
"Type": "AWS::Logs::SubscriptionFilter", | |
"DependsOn": "LoggingLambdaPermission", | |
"Properties": { | |
"LogGroupName": "LogGroup", | |
"FilterPattern": "{ $.HaHaThisIsJson NOT EXISTS }", | |
"DestinationArn": { | |
"Fn::GetAtt": [ | |
"LoghandlerLambdaFunction", | |
"Arn" |
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 | |
source Shared.sh | |
aws elbv2 deregister-targets --target-group-arn $targetGroup --targets Id=$instanceId | |
describe-target-health $targetGroup $instanceId | |
aws elbv2 wait target-deregistered --target-group-arn $targetGroup --targets Id=$instanceId | |
describe-target-health $targetGroup $instanceId |
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 | |
source Shared.sh | |
aws elbv2 register-targets --target-group-arn $targetGroup --targets Id=$instanceId | |
describe-target-health $targetGroup $instanceId | |
aws elbv2 wait target-in-service --target-group-arn $targetGroup --targets Id=$instanceId | |
describe-target-health $targetGroup $instanceId |
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
[Unit] | |
Description=SERVICENAME | |
[Service] | |
WorkingDirectory=#{Octopus.Action.Package.InstallationDirectoryPath} | |
ExecStart=#{Octopus.Action.Package.InstallationDirectoryPath}/SERVICENAME | |
Restart=always | |
RestartSec=10 | |
User=ec2-user | |
Environment=HOSTNAME=#{Octopus.Machine.Name} |
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 | |
packageId=$( get_octopusvariable "Octopus.Action.Package.PackageId" ) | |
echo Package Id is $packageId | |
chmod +x $packageId | |
if [ -e /lib/systemd/system/$packageId.service ] | |
then | |
echo stopping service |
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
tap "aws/tap" | |
tap "common-fate/granted" | |
tap "gjbae1212/gossm" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
tap "tedsmitt/ecsgo" |
OlderNewer