mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
separate workspaces
This commit is contained in:
parent
93f2b2c0cf
commit
5250e73722
15 changed files with 97 additions and 22 deletions
15
tf-infra/aws/state.sh
Executable file
15
tf-infra/aws/state.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
BUCKET="nilstrieb-states"
|
||||
|
||||
case "$1" in
|
||||
download)
|
||||
aws s3api get-object --bucket "$BUCKET" --key "aws-terraform.tfstate" "terraform.tfstate"
|
||||
;;
|
||||
upload)
|
||||
aws s3api put-object --bucket "$BUCKET" --key "aws-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