mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * backup_and_restore/application_backup_and_restore/installing/installing-oadp-aws.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="oadp-aws-secrets-for-different-credentials_{context}"]
|
|
= Creating profiles for different credentials
|
|
|
|
[role="_abstract"]
|
|
If your backup and snapshot locations use different credentials, you create separate profiles in the `credentials-velero` file.
|
|
|
|
Then, you create a `Secret` object and specify the profiles in the `DataProtectionApplication` custom resource (CR).
|
|
|
|
.Procedure
|
|
|
|
. Create a `credentials-velero` file with separate profiles for the backup and snapshot locations, as in the following example:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
[backupStorage]
|
|
aws_access_key_id=<AWS_ACCESS_KEY_ID>
|
|
aws_secret_access_key=<AWS_SECRET_ACCESS_KEY>
|
|
|
|
[volumeSnapshot]
|
|
aws_access_key_id=<AWS_ACCESS_KEY_ID>
|
|
aws_secret_access_key=<AWS_SECRET_ACCESS_KEY>
|
|
----
|
|
|
|
. Create a `Secret` object with the `credentials-velero` file:
|
|
+
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
$ oc create secret generic {credentials} -n openshift-adp --from-file cloud=credentials-velero <1>
|
|
----
|
|
|
|
. Add the profiles to the `DataProtectionApplication` CR, as in the following example:
|
|
+
|
|
[source,yaml,subs="attributes+"]
|
|
----
|
|
apiVersion: oadp.openshift.io/v1alpha1
|
|
kind: DataProtectionApplication
|
|
metadata:
|
|
name: <dpa_sample>
|
|
namespace: openshift-adp
|
|
spec:
|
|
...
|
|
backupLocations:
|
|
- name: default
|
|
velero:
|
|
provider: {provider}
|
|
default: true
|
|
objectStorage:
|
|
bucket: <bucket_name>
|
|
prefix: <prefix>
|
|
config:
|
|
region: us-east-1
|
|
profile: "backupStorage"
|
|
credential:
|
|
key: cloud
|
|
name: {credentials}
|
|
snapshotLocations:
|
|
- velero:
|
|
provider: {provider}
|
|
config:
|
|
region: us-west-2
|
|
profile: "volumeSnapshot"
|
|
---- |