-
Run packer-build.sh
$ ./bin/packer-build.sh
-
Build stack with ami that you get from the packer build
$ ./bin/build.sh nubis-elk
-
Wait for build to complete and then update consul
$ export PATH="~/nubis/nubis-builder/bin:$PATH" $ nubis-consul --stack-name nubis-elk --settings nubis/cloudformation/parameters.json get-and-update
-
Stack information
$ aws cloudformation describe-stacks --stack-name nubis-elk
-
Get ec2 instance private IP
$ aws ec2 describe-instances --filter "Name=tag:ServiceName,Values=nubis-elk" | jq ".Reservations|.[].Instances|.[].PrivateIpAddress" -r
-
Get stack build information
STACK_NAME="nubis-elk"; watch -n 1 "echo 'Container Stack'; aws cloudformation describe-stacks --query 'Stacks[*].[StackName,StackStatus]' --output text --stack-name $STACK_NAME; echo \"\nNested Stacks\"; aws cloudformation describe-stack-resources --stack-name $STACK_NAME --query 'StackResources[*].[LogicalResourceId, ResourceStatus]' --output text"