This file contains hidden or 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
# Notes: | |
# You'll need to update any references to 'module.vpc' with your VPC's info (subnets, security groups, etc) | |
# If you define your subnets as a map, this will deploy different replicas across availabity zones. Note | |
# that the master and first replica will be in the same AZ. | |
# | |
# Look through the 'connection' fields and update with your bastion_host/key combos | |
# | |
# Number of IPA Replica(s) to deploy | |
variable "ipa_replicas" { |
This file contains hidden or 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 | |
bucket=$1 | |
set -e | |
echo "Removing all versions from $bucket" | |
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |