Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infra/host/host.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resource "aws_instance" "host" {
}

output "public_ips" {
value = "${join(\",\", aws_instance.node.*.public_ip)}"
value = "${join(\",\", aws_instance.host.*.public_ip)}"
}

output "name" {
Expand Down
17 changes: 15 additions & 2 deletions module/cell.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ init() {
cmd-export cell-plan plan
cmd-export cell-destroy destroy
cmd-export cell-output output
cmd-export cell-taint taint
cmd-export cell-bake bake
}

Expand All @@ -28,7 +29,8 @@ coreos-ami() {

user-ami() {
declare region="$1" name="$2"
aws ec2 --region "$region" \
aws --output json \
ec2 --region "$region" \
describe-images \
--owners self \
--filters "Name=name,Values=$name" \
Expand All @@ -38,7 +40,7 @@ user-ami() {
cell-rundir() {
if [[ ! "$cell_rundir" ]]; then
mkdir -p "$GUN_ROOT/.gun/runs"
cell_rundir="$(ls -1Ut $GUN_ROOT/.gun/runs/ | grep "$GUN_PROFILE-" | head -n 1)"
cell_rundir="$GUN_ROOT/.gun/runs/$(ls -1Ut $GUN_ROOT/.gun/runs/ | grep "$GUN_PROFILE-" | head -n 1)"
fi
echo "${cell_rundir:?}"
}
Expand Down Expand Up @@ -89,6 +91,17 @@ cell-output() {
popd > /dev/null
}

cell-taint() {
declare name="$1" target="$2"
if [[ ! "$target" ]]; then
target=".cell"
fi
pushd "$(cell-rundir)/$target" > /dev/null
# XXX include additional options
terraform taint $name
popd > /dev/null
}

#cell-init() {
# local stack_dir="$(dirname $BASH_SOURCE)/stack"
# cp -r $stack_dir/* .
Expand Down