Skip to content

Instantly share code, notes, and snippets.

View nachomglz's full-sized avatar
🎯
Focusing

Nacho Martin nachomglz

🎯
Focusing
View GitHub Profile
@nachomglz
nachomglz / cloudsearch-clone-domain.sh
Created November 27, 2024 14:25 — forked from winzig/cloudsearch-clone-domain.sh
A bash script to help you clone an AWS CloudSearch domain
#!/bin/bash
#
# Usage: cloudsearch-clone-domain <domain> <newdomain>
#
# After you run this script, you'll have a file named define-fields-<newdomain>.sh, which
# you can run to re-create all the fields from the cloned domain. If you haven't yet created
# the new CS domain, then run `aws cloudsearch create-domain --domain-name <newdomain>` before
# running the define-fields script that is produced by this script.
die () {