Initial migration (#1)
This will be needed to make the initial tags. Once merged to main, I will tag with the same module revisions as what exists in the Fleet repo. We can then test the example module using the new settings. Once validated, we'll then update the main fleet repo to redirect here for /terraform and remove everything there. Anything referring to old tags will still work in-place. Additionally any website references will be updated as well to reflect these changes.
This commit is contained in:
1 parent
ab9ac9862e
commit
f378f62db2
186 files changed
+9900
-3
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
function usage() {
|
||||
cat <<-EOUSAGE
|
||||
|
||||
Usage: $(basename ${0}) <KMS_KEY_ID> <SOURCE> <DESTINATION> [AWS_PROFILE]
|
||||
|
||||
This script decrypts an AWS KMS encrypted file from the desired
|
||||
SOURCE and places it it as the DESTINATION file. Optionally you
|
||||
may provide the AWS_PROFILE you wish to use to run the aws kms
|
||||
commands.
|
||||
|
||||
Hint: You can use /dev/stdout for the destination to just view the
|
||||
output.
|
||||
EOUSAGE
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ $# -lt 3 ] && usage
|
||||
|
||||
if [ -n "${4}" ]; then
|
||||
export AWS_PROFILE=${4}
|
||||
fi
|
||||
|
||||
aws kms decrypt --key-id "${1:?}" --ciphertext-blob fileb://<(cat "${2:?}" | base64 -d) --output text --query Plaintext | base64 --decode > "${3:?}"
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
function usage() {
|
||||
cat <<-EOUSAGE
|
||||
|
||||
Usage: $(basename ${0}) <KMS_KEY_ID> <SOURCE> <DESTINATION> [AWS_PROFILE]
|
||||
|
||||
This script encrypts an plaintext file from SOURCE into an
|
||||
AWS KMS encrypted DESTINATION file. Optionally you
|
||||
may provide the AWS_PROFILE you wish to use to run the aws kms
|
||||
commands.
|
||||
|
||||
EOUSAGE
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ $# -lt 3 ] && usage
|
||||
|
||||
if [ -n "${4}" ]; then
|
||||
export AWS_PROFILE=${4}
|
||||
fi
|
||||
|
||||
aws kms encrypt --key-id "${1:?}" --plaintext fileb://<(cat "${2:?}") --output text --query CiphertextBlob > "${3:?}"
|
||||
Reference in new issue
Block a user