Skip to content

Commit 5ba27d4

Browse files
authored
Update secure.storage.sh
1 parent a613e32 commit 5ba27d4

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

cloud-infrastructure/storage/block-storage/asset/secure.storage.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ source functions0.sh
2727
# Oracle Cloud Infrastructure CLI Command Reference - https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/
2828
# ---------------------------------------------------------------------------------------------------------------------------------------------
2929

30-
MYOUTPUT="Secure Storage by example - Preperation" && MYCOUNT=$((1))
30+
MYOUTPUT="Secure Storage by Example - Preperation" && MYCOUNT=$((1))
3131
if [ 1 -eq 1 ] ; then
3232
color_print "${IGreen}" "($MYCOUNT) $(date "+%d.%m.%Y %H:%M:%S") : $MYOUTPUT"
3333

@@ -42,8 +42,8 @@ if [ 1 -eq 1 ] ; then # create BLOCK volume
4242
if [ ${CREATE_BLOCK_VOLUME} -eq 1 ] ; then # create block volume
4343
oci --profile "${REGION_PROFILE}" bv volume create --availability-domain "${FRANKFURT_AVAILABILITY_DOMAIN}" \
4444
--compartment-id "${COMPARTMENT_OCID}" \
45-
--display-name "${FRANKFURT_BLOCK_VOLUME_NAME}" \
46-
--size-in-gbs 50 \
45+
--display-name "${FRANKFURT_BLOCK_VOLUME_NAME}" \
46+
--size-in-gbs 50 \
4747
--wait-for-state "AVAILABLE"
4848
fi
4949

@@ -102,7 +102,7 @@ echo " " >> "${LOG_FILE}"
102102
fi
103103

104104

105-
MYOUTPUT="Secure Storage with Customer managed Key" && MYCOUNT=$(($MYCOUNT + 1))
105+
MYOUTPUT="Secure Storage with Customer-managed Key" && MYCOUNT=$(($MYCOUNT + 1))
106106
if [ 1 -eq 1 ] ; then
107107
color_print "${IGreen}" "($MYCOUNT) $(date "+%d.%m.%Y %H:%M:%S") : $MYOUTPUT"
108108

@@ -116,25 +116,25 @@ echo "=====================================================================" >>
116116
echo "${PF1} $(date "+%d.%m.%Y %H:%M:%S")" >> "${LOG_FILE}"
117117
echo "${PF1} --------------------------------------------------------------" >> "${LOG_FILE}"
118118

119-
color_print "${MYcolor}" "${PF1} BLOCK volume change from Oracle managed Key to Customer managed Key"
120-
if [ 1 -eq 1 ] ; then # BLOCK volume change from Oracle managed Key to Customer managed Key
119+
color_print "${MYcolor}" "${PF1} BLOCK volume change from Oracle-managed Key to Customer-managed Key"
120+
if [ 1 -eq 1 ] ; then # BLOCK volume change from Oracle-managed Key to Customer-managed Key
121121
oci --profile "${REGION_PROFILE}" bv volume-kms-key update --volume-id "${BLOCK_VOLUME_OCID}" --kms-key-id "${MasterEncryptionKey_OCID}"
122-
echo "${PF1} BLOCK volume change from Oracle managed Key to Customer managed Key" >> "${LOG_FILE}"
122+
echo "${PF1} BLOCK volume change from Oracle-managed Key to Customer-managed Key" >> "${LOG_FILE}"
123123
fi
124124

125-
color_print "${MYcolor}" "${PF1} BLOCK volume backup change from Oracle managed Key to Customer managed Key (coming soon)"
126-
if [ 1 -eq 0 ] ; then # BLOCK volume backup change from Oracle managed Key to Customer managed Key (coming soon)
125+
color_print "${MYcolor}" "${PF1} BLOCK volume backup change from Oracle-managed Key to Customer-managed Key (coming soon)"
126+
if [ 1 -eq 0 ] ; then # BLOCK volume backup change from Oracle-managed Key to Customer-managed Key (coming soon)
127127
: ' ---------------------------------------------------------------------------------------------------------------------------------------
128128
Backup Data in Storage Services https://docs.oracle.com/en/solutions/oci-best-practices/back-your-data1.html
129129
-------------------------------------------------------------------------------------------------------------------------------------------'
130130
oci --profile "${REGION_PROFILE}" bv backup-kms-key update --volume-id "${BLOCK_VOLUME_BACKUP_OCID}" --kms-key-id "${MasterEncryptionKey_OCID}"
131131

132132
oci --profile "${REGION_PROFILE}" bv backup update --volume-backup-id "${BLOCK_VOLUME_BACKUP_OCID}" --kms-key-id "${MasterEncryptionKey_OCID}"
133-
echo "${PF1} BLOCK volume backup change from Oracle managed Key to Customer managed Key" >> "${LOG_FILE}"
133+
echo "${PF1} BLOCK volume backup change from Oracle-managed Key to Customer-managed Key" >> "${LOG_FILE}"
134134
fi
135135

136-
color_print "${MYcolor}" "${PF1} Rotation of Customer managed Key"
137-
if [ 1 -eq 1 ] ; then # Rotation of Customer managed Key
136+
color_print "${MYcolor}" "${PF1} Rotation of Customer-managed Key"
137+
if [ 1 -eq 1 ] ; then # Rotation of Customer-managed Key
138138

139139
: ' ---------------------------------------------------------------------------------------------------------------------------------------
140140
Periodically rotating keys limits the amount of data
@@ -144,32 +144,32 @@ kms management key-version create https://docs.oracle.com/
144144
-------------------------------------------------------------------------------------------------------------------------------------------'
145145

146146
oci --profile "${REGION_PROFILE}" kms management key-version create --key-id "${MasterEncryptionKey_OCID}" --endpoint "${ManagementEndpoint}" --wait-for-state "ENABLED"
147-
echo "${PF1} Rotation of Customer managed Key" >> "${LOG_FILE}"
147+
echo "${PF1} Rotation of Customer-managed Key" >> "${LOG_FILE}"
148148
fi
149149

150150
echo "${PF1} --------------------------------------------------------------" >> "${LOG_FILE}"
151151
echo " " >> "${LOG_FILE}"
152152
fi
153153

154-
MYOUTPUT="Secure Storage with Oracle managed Key" && MYCOUNT=$(($MYCOUNT + 1))
154+
MYOUTPUT="Secure Storage with Oracle-managed Key" && MYCOUNT=$(($MYCOUNT + 1))
155155
if [ 1 -eq 1 ] ; then
156156
color_print "${IGreen}" "($MYCOUNT) $(date "+%d.%m.%Y %H:%M:%S") : $MYOUTPUT"
157157

158-
echo "Secure Storage with Oracle managed Key" >> "${LOG_FILE}"
158+
echo "Secure Storage with Oracle-managed Key" >> "${LOG_FILE}"
159159
echo "=====================================================================" >> "${LOG_FILE}"
160160
echo "${PF1} $(date "+%d.%m.%Y %H:%M:%S")" >> "${LOG_FILE}"
161161
echo "${PF1} --------------------------------------------------------------" >> "${LOG_FILE}"
162162

163-
color_print "${MYcolor}" "${PF1} BLOCK volume change from Customer managed Key to Oracle managed Key"
163+
color_print "${MYcolor}" "${PF1} BLOCK volume change from Customer-managed Key to Oracle-managed Key"
164164
if [ 1 -eq 1 ] ; then # BLOCK volume change from Customer managed Key to Oracle managed Key
165165
oci --profile "${REGION_PROFILE}" bv volume-kms-key update --volume-id "${BLOCK_VOLUME_OCID}" --kms-key-id "${MasterEncryptionKey_OCID}"
166-
echo "${PF1} BLOCK volume change from Customer managed Key to Oracle managed Key" >> "${LOG_FILE}"
166+
echo "${PF1} BLOCK volume change from Customer-managed Key to Oracle-managed Key" >> "${LOG_FILE}"
167167
fi
168168

169-
color_print "${MYcolor}" "${PF1} BLOCK volume backup change from Customer managed Key to Oracle managed Key (coming soon)"
170-
if [ 1 -eq 0 ] ; then # BLOCK volume backup change from Customer managed Key to Oracle managed Key (coming soon)
169+
color_print "${MYcolor}" "${PF1} BLOCK volume backup change from Customer-managed Key to Oracle-managed Key (coming soon)"
170+
if [ 1 -eq 0 ] ; then # BLOCK volume backup change from Customer-managed Key to Oracle-managed Key (coming soon)
171171
#oci --profile "${REGION_PROFILE}" bv backup-kms-key update --volume-id "${BLOCK_VOLUME_BACKUP_OCID}" --kms-key-id "${MasterEncryptionKey_OCID}"
172-
echo "${PF1} BLOCK volume backup change from Customer managed Key to Oracle managed Key" >> "${LOG_FILE}"
172+
echo "${PF1} BLOCK volume backup change from Customer-managed Key to Oracle-managed Key" >> "${LOG_FILE}"
173173
fi
174174

175175
echo "${PF1} --------------------------------------------------------------" >> "${LOG_FILE}"
@@ -181,4 +181,4 @@ MYOUTPUT="End of Programm" && MYCOUNT=$(($MYCOUNT + 1))
181181
color_print "${IGreen}" "($MYCOUNT) $(date "+%d.%m.%Y %H:%M:%S") : $MYOUTPUT"
182182
# ---------------------------------------------------------------------------------------------------------------------------------------------
183183
# end of file
184-
# ---------------------------------------------------------------------------------------------------------------------------------------------
184+
# ---------------------------------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)