@@ -27,7 +27,7 @@ source functions0.sh
27
27
# Oracle Cloud Infrastructure CLI Command Reference - https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/
28
28
# ---------------------------------------------------------------------------------------------------------------------------------------------
29
29
30
- MYOUTPUT=" Secure Storage by example - Preperation" && MYCOUNT=$(( 1 ))
30
+ MYOUTPUT=" Secure Storage by Example - Preperation" && MYCOUNT=$(( 1 ))
31
31
if [ 1 -eq 1 ] ; then
32
32
color_print " ${IGreen} " " ($MYCOUNT ) $( date " +%d.%m.%Y %H:%M:%S" ) : $MYOUTPUT "
33
33
@@ -42,8 +42,8 @@ if [ 1 -eq 1 ] ; then # create BLOCK volume
42
42
if [ ${CREATE_BLOCK_VOLUME} -eq 1 ] ; then # create block volume
43
43
oci --profile " ${REGION_PROFILE} " bv volume create --availability-domain " ${FRANKFURT_AVAILABILITY_DOMAIN} " \
44
44
--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 \
47
47
--wait-for-state " AVAILABLE"
48
48
fi
49
49
@@ -102,7 +102,7 @@ echo " " >> "${LOG_FILE}"
102
102
fi
103
103
104
104
105
- MYOUTPUT=" Secure Storage with Customer managed Key" && MYCOUNT=$(( $MYCOUNT + 1 ))
105
+ MYOUTPUT=" Secure Storage with Customer- managed Key" && MYCOUNT=$(( $MYCOUNT + 1 ))
106
106
if [ 1 -eq 1 ] ; then
107
107
color_print " ${IGreen} " " ($MYCOUNT ) $( date " +%d.%m.%Y %H:%M:%S" ) : $MYOUTPUT "
108
108
@@ -116,25 +116,25 @@ echo "=====================================================================" >>
116
116
echo " ${PF1} $( date " +%d.%m.%Y %H:%M:%S" ) " >> " ${LOG_FILE} "
117
117
echo " ${PF1} --------------------------------------------------------------" >> " ${LOG_FILE} "
118
118
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
121
121
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} "
123
123
fi
124
124
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)
127
127
: ' ---------------------------------------------------------------------------------------------------------------------------------------
128
128
Backup Data in Storage Services https://docs.oracle.com/en/solutions/oci-best-practices/back-your-data1.html
129
129
-------------------------------------------------------------------------------------------------------------------------------------------'
130
130
oci --profile " ${REGION_PROFILE} " bv backup-kms-key update --volume-id " ${BLOCK_VOLUME_BACKUP_OCID} " --kms-key-id " ${MasterEncryptionKey_OCID} "
131
131
132
132
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} "
134
134
fi
135
135
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
138
138
139
139
: ' ---------------------------------------------------------------------------------------------------------------------------------------
140
140
Periodically rotating keys limits the amount of data
@@ -144,32 +144,32 @@ kms management key-version create https://docs.oracle.com/
144
144
-------------------------------------------------------------------------------------------------------------------------------------------'
145
145
146
146
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} "
148
148
fi
149
149
150
150
echo " ${PF1} --------------------------------------------------------------" >> " ${LOG_FILE} "
151
151
echo " " >> " ${LOG_FILE} "
152
152
fi
153
153
154
- MYOUTPUT=" Secure Storage with Oracle managed Key" && MYCOUNT=$(( $MYCOUNT + 1 ))
154
+ MYOUTPUT=" Secure Storage with Oracle- managed Key" && MYCOUNT=$(( $MYCOUNT + 1 ))
155
155
if [ 1 -eq 1 ] ; then
156
156
color_print " ${IGreen} " " ($MYCOUNT ) $( date " +%d.%m.%Y %H:%M:%S" ) : $MYOUTPUT "
157
157
158
- echo " Secure Storage with Oracle managed Key" >> " ${LOG_FILE} "
158
+ echo " Secure Storage with Oracle- managed Key" >> " ${LOG_FILE} "
159
159
echo " =====================================================================" >> " ${LOG_FILE} "
160
160
echo " ${PF1} $( date " +%d.%m.%Y %H:%M:%S" ) " >> " ${LOG_FILE} "
161
161
echo " ${PF1} --------------------------------------------------------------" >> " ${LOG_FILE} "
162
162
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"
164
164
if [ 1 -eq 1 ] ; then # BLOCK volume change from Customer managed Key to Oracle managed Key
165
165
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} "
167
167
fi
168
168
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)
171
171
# 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} "
173
173
fi
174
174
175
175
echo " ${PF1} --------------------------------------------------------------" >> " ${LOG_FILE} "
@@ -181,4 +181,4 @@ MYOUTPUT="End of Programm" && MYCOUNT=$(($MYCOUNT + 1))
181
181
color_print " ${IGreen} " " ($MYCOUNT ) $( date " +%d.%m.%Y %H:%M:%S" ) : $MYOUTPUT "
182
182
# ---------------------------------------------------------------------------------------------------------------------------------------------
183
183
# end of file
184
- # ---------------------------------------------------------------------------------------------------------------------------------------------
184
+ # ---------------------------------------------------------------------------------------------------------------------------------------------
0 commit comments