mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 01:25:09 +01:00
call me stuff the way i do stuff
This commit is contained in:
parent
8331b28f5d
commit
0eae57ba2e
6 changed files with 105 additions and 21 deletions
15
tf-infra/state.sh
Executable file
15
tf-infra/state.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
BUCKET="nilstrieb-states"
|
||||
|
||||
case "$1" in
|
||||
download)
|
||||
aws s3api get-object --bucket "$BUCKET" --key "terraform.tfstate" "terraform.tfstate"
|
||||
;;
|
||||
upload)
|
||||
aws s3api put-object --bucket "$BUCKET" --key "terraform.tfstate" --body "terraform.tfstate"
|
||||
;;
|
||||
*)
|
||||
echo "subcommand download or upload required"
|
||||
exit 1
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue