Delete tf-infra/aws/state.sh

This commit is contained in:
nora 2024-07-15 10:19:24 +02:00 committed by GitHub
parent 81655fde57
commit 83458998aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,15 +0,0 @@
#!/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