-
Notifications
You must be signed in to change notification settings - Fork 13
468 lines (399 loc) · 21.7 KB
/
deploy-openshift-plus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
name: deploy-openshift-plus
on:
workflow_dispatch:
inputs:
region:
description: 'AWS Region to deploy cluster to'
required: true
s3_storage:
description: 'S3 storage bucket name to save installation config files'
required: true
ocpVersion:
description: 'OpenShift version to be installed (stable, 4.7.17)'
required: true
default: 'stable'
baseDomain:
description: 'Base domain to deploy the cluster (i.e. sandbox772.opentlc.com)'
required: true
clusterNamePrefix:
description: 'Cluster name prefix will get combined with the github run number'
required: true
default: 'ocp'
numWorkers:
description: 'Number of workers to deploy on the cluster'
required: true
default: '3'
workersFlavor:
description: 'Workers default size (m5.2xlarge recommended for OpenShift Plus)'
required: true
default: 'm5.2xlarge'
networkType:
description: 'Network type to deploy for cluster (OpenShiftSDN, OVNKubernetes)'
required: true
default: 'OpenShiftSDN'
jobs:
deploy-openshift:
name: "Deploying OpenShift on AWS"
runs-on: macos-latest
env:
lcl_install_dir: ${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}
kubeconfig_path: "${{github.workspace}}/${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}/auth/kubeconfig"
numMasters: 3
hostPrefix: '23'
cidrClusterNetwork: '10.128.0.0/14'
serviceNetwork: '172.30.0.0/16'
cidrMachineNetwork: '10.0.0.0/16'
cidrhybridClusterNetwork: '10.132.0.0/14'
steps:
- name: "Checkout ${{ github.ref }}"
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Install OpenShift CLI
uses: redhat-actions/oc-installer@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: "${{ github.event.inputs.region }}"
- name: Create S3 bucket
shell: bash
run: |
aws_ls_result=$(aws s3 ls "s3://${{ github.event.inputs.s3_storage }}" 2>&1) || true
if [[ $aws_ls_result = *NoSuchBucket* ]]
then
echo " *** ${{ github.event.inputs.s3_storage }} BUCKET DOESN'T EXIST YET. CREATING S3 BUCKET... *** "
if [ "${{ github.event.inputs.region }}" = "us-east-1" ];
then
aws s3api create-bucket --bucket ${{ github.event.inputs.s3_storage }} --region ${{ github.event.inputs.region }} --acl private
else
aws s3api create-bucket --bucket ${{ github.event.inputs.s3_storage }} --create-bucket-configuration LocationConstraint=${{ github.event.inputs.region }} --acl private
fi
aws s3api put-public-access-block --bucket ${{ github.event.inputs.s3_storage }} --public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"
echo "S3 Bucket ${{ github.event.inputs.s3_storage }} created on region ${{ github.event.inputs.region }}"
elif [[ $aws_ls_result = *AccessDenied* ]]
then
echo " *** GOT ACCESS DENIED ERROR! REVIEW THE BUCKET NAME, WHICH MUST BE UNIQUE AND NOT CONTAIN SPACES OR UPPERCASE LETTERS. *** "
else
echo " *** ${{ github.event.inputs.s3_storage }} BUCKET ALREADY EXISTS *** "
fi
- name: Create SSH key for cluster
shell: bash
run: |
echo "\n *** VARS USED IN THIS STEP *** "
echo "lcl_install_dir is: ${{ env.lcl_install_dir }}"
echo " ********************************* \n"
mkdir -p ./${{ env.lcl_install_dir }}/ssh-keys/
ssh-keygen -t rsa -b 4096 -q -N "" -f "./${{ env.lcl_install_dir }}/ssh-keys/${{ env.lcl_install_dir }}"
aws s3 sync ./${{ env.lcl_install_dir }}/ssh-keys/ s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }}/ssh-keys/
- name: Parameterize install-config.yaml
shell: bash
env:
s3_config_path: "${{ github.event.inputs.s3_storage }}/ocp-install-configs"
clusterName: "${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}"
run: |
export pullSecret='${{ secrets.PULL_SECRET }}'
export sshKey=$(cat "./${{ env.lcl_install_dir }}/ssh-keys/${{ env.lcl_install_dir }}.pub")
export region=${{ github.event.inputs.region }}
export email=${{ secrets.EMAIL }}
export delete_by=NEVER
export always_up=false
export baseDomain=${{ github.event.inputs.baseDomain }}
export numMasters=${{ env.numMasters }}
export numWorkers=${{ github.event.inputs.numWorkers }}
export workersFlavor=${{ github.event.inputs.workersFlavor }}
export hostPrefix=${{ env.hostPrefix }}
export networkType=${{ github.event.inputs.networkType }}
export clusterName=${{ env.clusterName }}
export cidrClusterNetwork=${{ env.cidrClusterNetwork }}
export cidrMachineNetwork=${{ env.cidrMachineNetwork }}
export serviceNetwork=${{ env.serviceNetwork }}
envsubst < ./install-configs/install-config-template.yaml > ./${{ env.lcl_install_dir }}/install-config.yaml
aws s3 sync ./${{ env.lcl_install_dir }}/ s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }}/
- name: Download OpenShift installer and update permissions
shell: bash
run: |
mkdir -p ./${{ env.lcl_install_dir }}
echo "Downloading OpenShift Installer..."
wget -q https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${{ github.event.inputs.ocpVersion }}/openshift-install-mac.tar.gz
tar -xvzf openshift-install-mac.tar.gz
echo "Update permissions to executable on the openshift-installer..."
chmod +x ./openshift-install
echo "OCP_VERSION=$(./openshift-install version | head -n 1)" >> $GITHUB_ENV
- name: Create manifests
shell: bash
run: |
echo "Create OpenShift manifests...\n"
./openshift-install --dir=./${{ env.lcl_install_dir }} create manifests
- name: Parameterize cluster-network-03-config file
if: github.event.inputs.networkType == 'OVNKubernetes'
shell: bash
env:
s3_config_path: "${{ github.event.inputs.s3_storage }}/ocp-install-configs"
run: |
export hostPrefix=${{ env.hostPrefix }}
export cidrClusterNetwork=${{ env.cidrClusterNetwork }}
export serviceNetwork=${{ env.serviceNetwork }}
export cidrhybridClusterNetwork=${{ env.cidrhybridClusterNetwork }}
envsubst < ./install-configs/cluster-network-03-config-template.yaml > ./${{ env.lcl_install_dir }}/manifests/cluster-network-03-config.yaml
aws s3 sync ./${{ env.lcl_install_dir }}/ s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }}/
if [ ! -f ./${{ env.lcl_install_dir }}/manifests/cluster-network-03-config.yml ]; then echo "cluster-network-03-config.yaml does not exist." exit 1; else echo "cluster-network-03-config.yaml exists, continuing deployment..."; fi
- name: Create ignition configs
shell: bash
run: |
./openshift-install create ignition-configs --dir=./${{ env.lcl_install_dir }}
- name: Run OCP installer - create cluster
shell: bash
run: |
echo "Starting Install of $OCP_VERSION"
echo "Deployment ETA ~40 minutes..."
./openshift-install --dir=./${{ env.lcl_install_dir }} create cluster --log-level=warn
echo "Uploading install files to S3 for: ${{ env.lcl_install_dir }}"
aws s3 sync ./${{ env.lcl_install_dir }} s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }}
- name: Remove kubeadmin user
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
echo "KUBECONFIG env var is: $KUBECONFIG"
echo "Verify by running oc get nodes:"
oc get nodes
htpasswd -c -B -b ./users.htpasswd ${{ secrets.OC_USER }} ${{ secrets.OC_PASSWORD }}
oc create secret generic htpass-secret --from-file=htpasswd=./users.htpasswd -n openshift-config
oc apply -f ./crd/htpasswd-oauth.yml
oc create clusterrolebinding registry-controller --clusterrole=cluster-admin --user=${{ secrets.OC_USER }}
oc adm policy add-cluster-role-to-user cluster-admin ${{ secrets.OC_USER }}
oc delete secrets kubeadmin -n kube-system
- name: install certbot + aws-route53-extension
shell: bash
run: |
brew install certbot
pip3 install certbot-dns-route53
- name: Run certbot against route53 to generate certs
shell: bash
env:
domain_for_cert: "*.apps.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}"
run: |
certbot certonly \
--dns-route53 \
--config-dir ./certbot-config \
--logs-dir ./certbot/logs \
--work-dir ./certbot/work \
--agree-tos \
--non-interactive \
--email ${{ secrets.EMAIL }} \
-d "${{ env.domain_for_cert }}"
- name: Apply ssl cert against OpenShift
shell: bash
env:
cert_name: "apps.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}"
fullchain_path: "${{github.workspace}}/certbot-config/live/${{ env.cert_name }}/fullchain.pem"
privkey_path: "${{github.workspace}}/certbot-config/live/${{ env.cert_name }}/privkey.pem"
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
fullchain="${{github.workspace}}/certbot-config/live/${{ env.cert_name }}/fullchain.pem"
privkey="${{github.workspace}}/certbot-config/live/${{ env.cert_name }}/privkey.pem"
oc create secret tls router-certs --cert=$fullchain --key=$privkey -n openshift-ingress
oc patch ingresscontroller default -n openshift-ingress-operator --type=merge --patch='{"spec": { "defaultCertificate": { "name": "router-certs" }}}'
echo "OpenShift login available at: https://console-openshift-console.apps.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}"
deploy-argocd:
name: "Deploying ArgoCD on OpenShift"
needs: deploy-openshift
runs-on: macos-latest
env:
lcl_install_dir: ${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}
ocp_url: "https://api.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}:6443"
steps:
- name: "Checkout ${{ github.ref }}"
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Install OpenShift CLI
uses: redhat-actions/oc-installer@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: "${{ github.event.inputs.region }}"
- name: Downloading artifacts from S3
shell: bash
run: |
mkdir -p ./${{ env.lcl_install_dir }}
aws s3 sync s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }} ./${{ env.lcl_install_dir }} --region ${{ github.event.inputs.region }}
- name: Deploying ArgoCD
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
oc apply -f ./crd/argocd/argocd-sub.yaml
sleep 120
TIMEOUT=0
argo_status=$(oc get argocd -n openshift-gitops -o jsonpath='{.items[0].status.server}')
while [ "$argo_status" != "Running" ]; do
echo "ArgoCD operator still being deployed. Waiting one more minute..."
sleep 60
if [ $TIMEOUT -gt 15 ]; then #15 MINUTES TIMEOUT
echo "Timeout reached... Check the status of ArgoCD deployment on OpenShift."
exit 1
fi
TIMEOUT=$(($TIMEOUT+1))
argo_status=$(oc get argocd -n openshift-gitops -o jsonpath='{.items[0].status.server}')
done
argocd_url=$(oc get route openshift-gitops-server -n openshift-gitops -o jsonpath='{.spec.host}')
echo "ArgoCD is installed and available at \"https://$argocd_url\""
echo "Check the initial password by running this command on your OpenShift cluster: \"oc extract secret/openshift-gitops-cluster -n openshift-gitops --to=-\""
- name: Set permissions required for ArgoCD
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller
deploy-quay-with-argo:
name: "Deploying Quay with GitOps using ArgoCD"
needs: [deploy-openshift, deploy-argocd]
runs-on: macos-latest
env:
lcl_install_dir: ${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}
ocp_url: "https://api.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}:6443"
steps:
- name: "Checkout ${{ github.ref }}"
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Install OpenShift CLI
uses: redhat-actions/oc-installer@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: "${{ github.event.inputs.region }}"
- name: Downloading artifacts from S3
shell: bash
run: |
mkdir -p ./${{ env.lcl_install_dir }}
aws s3 sync s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }} ./${{ env.lcl_install_dir }} --region ${{ github.event.inputs.region }}
- name: Install Quay with GitOps using ArgoCD
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
git clone https://github.com/giofontana/argocd-ocp.git
cd argocd-ocp
./deploy-quay-with-argo.sh
echo "Quay Install Finished"
deploy-acm-with-argo:
name: "Deploying ACM with GitOps using ArgoCD"
needs: [deploy-openshift, deploy-argocd]
runs-on: macos-latest
env:
lcl_install_dir: ${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}
ocp_url: "https://api.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}:6443"
steps:
- name: "Checkout ${{ github.ref }}"
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Install OpenShift CLI
uses: redhat-actions/oc-installer@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: "${{ github.event.inputs.region }}"
- name: Downloading artifacts from S3
shell: bash
run: |
mkdir -p ./${{ env.lcl_install_dir }}
aws s3 sync s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }} ./${{ env.lcl_install_dir }} --region ${{ github.event.inputs.region }}
- name: Install ACM with GitOps using ArgoCD
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
git clone https://github.com/giofontana/argocd-ocp.git
cd argocd-ocp
./deploy-acm-with-argo.sh '${{ secrets.PULL_SECRET }}'
echo "ACM Install Finished"
deploy-acs-with-argo:
name: "Deploying ACS with GitOps using ArgoCD"
needs: [deploy-openshift, deploy-argocd]
runs-on: macos-latest
env:
lcl_install_dir: ${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}
ocp_url: "https://api.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}:6443"
steps:
- name: "Checkout ${{ github.ref }}"
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Install OpenShift CLI
uses: redhat-actions/oc-installer@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: "${{ github.event.inputs.region }}"
- name: Downloading artifacts from S3
shell: bash
run: |
mkdir -p ./${{ env.lcl_install_dir }}
aws s3 sync s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }} ./${{ env.lcl_install_dir }} --region ${{ github.event.inputs.region }}
- name: Install ACS (Stackrox) with GitOps using ArgoCD
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
git clone https://github.com/giofontana/argocd-ocp.git
cd argocd-ocp
./deploy-acs-with-argo.sh
echo "ACS Install Finished"
upload-data-to-s3:
name: "Uploading URLs and Credentials to S3"
needs: [deploy-openshift, deploy-argocd, deploy-quay-with-argo, deploy-acm-with-argo, deploy-acs-with-argo]
runs-on: macos-latest
env:
lcl_install_dir: ${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}
ocp_url: "https://api.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}:6443"
steps:
- name: "Checkout ${{ github.ref }}"
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Install OpenShift CLI
uses: redhat-actions/oc-installer@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
aws-region: "${{ github.event.inputs.region }}"
- name: Downloading artifacts from S3
shell: bash
run: |
mkdir -p ./${{ env.lcl_install_dir }}
aws s3 sync s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }} ./${{ env.lcl_install_dir }} --region ${{ github.event.inputs.region }}
- name: Get URLs and Credentials
shell: bash
run: |
export KUBECONFIG=$(pwd)/${{ env.lcl_install_dir }}/auth/kubeconfig
ocp_console="https://console-openshift-console.apps.${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}.${{ github.event.inputs.baseDomain }}"
argo_url="https://$(oc get route openshift-gitops-server -n openshift-gitops -o jsonpath='{.spec.host}')"
argo_credentials="$(oc extract secret/openshift-gitops-cluster -n openshift-gitops --to=-)"
acm_url="https://$(oc get route multicloud-console -n openshift-advanced-cluster-mgmt -o jsonpath='{.spec.host}')"
acs_central_url="https://$(oc -n stackrox get route central -o jsonpath='{.spec.host}')"
acs_credentials=$(oc -n stackrox get secret central-htpasswd -o go-template='{{index .data "password" | base64decode}}')
quay_registry_url="https://$(oc get route quay-registry-quay -n openshift-operators -o jsonpath='{.spec.host}')"
CRED_FILE_NAME="$(pwd)/${{ env.lcl_install_dir }}/ocp-credentials.txt"
echo -e "OpenShift Plus Deployment Finished with success. \n\n" > $CRED_FILE_NAME
echo -e "*** OPENSHIFT URL: $ocp_console" >> $CRED_FILE_NAME
echo -e "*** OPENSHIFT CREDENTIALS: ${{ secrets.OC_USER }} - ${{ secrets.OC_PASSWORD }} \n\n" >> $CRED_FILE_NAME
echo -e "*** ARGOCD URL: $argo_url" >> $CRED_FILE_NAME
echo -e "*** ARGOCD CREDENTIALS: admin - $argo_credentials \n\n" >> $CRED_FILE_NAME
echo -e "*** ACM URL: $acm_url" >> $CRED_FILE_NAME
echo -e "*** ACM CREDENTIALS: ${{ secrets.OC_USER }} - ${{ secrets.OC_PASSWORD }} \n\n" >> $CRED_FILE_NAME
echo -e "*** ACS URL: $acs_central_url" >> $CRED_FILE_NAME
echo -e "*** ACS CREDENTIALS: admin - $acs_credentials \n\n" >> $CRED_FILE_NAME
echo -e "*** QUAY URL: $quay_registry_url" >> $CRED_FILE_NAME
echo -e "*** QUAY CREDENTIALS: << CREATE A NEW USER BY CLICKING IN \"Create Account\" LINK ON QUAY'S LOGON PAGE >> \n\n" >> $CRED_FILE_NAME
aws s3 sync ./${{ env.lcl_install_dir }} s3://${{ github.event.inputs.s3_storage }}/${{ env.lcl_install_dir }}
echo "URLs and Credentials are available at S3 https://s3.console.aws.amazon.com/s3/buckets/${{ github.event.inputs.s3_storage }}?region=${{ github.event.inputs.region }}&prefix=${{ github.event.inputs.clusterNamePrefix }}-${{ github.run_number }}/ocp-credentials.txt"
echo "Note: On AWS Logon Page select \"IAM user\" and use the AWS Account ID, Username and Password you received from RHPDS."