Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7265

Cloud Backup should include a section for EC2 IAM role credentials

    XMLWordPrintable

Details

    Description

      In this section you learn how to bucket to and from S3.
      however EC2 instance has a nice feature in which you can attach a IAM role to the instance, thus never have to provide further credentials when utilising S3 as a backup repo.

      Steps:
      1. Create a Role with a policy which allows S3 data manipulation (S3 Full Admin for example)
      2. attach it to the instance
      3. export CB_AWS_ENABLE_EC2_METADATA=true
      4. use the cbbackupmgr tool

      Sample run
      [ec2-user@ip-172-31-91-36 bin]$ export CB_AWS_ENABLE_EC2_METADATA=true
      [ec2-user@ip-172-31-91-36 bin]$ echo $CB_AWS_ENABLE_EC2_METADATA
      true
      [ec2-user@ip-172-31-91-36 bin]$ ./cbbackupmgr config -r testRepo --obj-region us-east-1 -a s3://bucketName/archiveFolder --obj-staging-dir /path/to/staging
      Backup repository `testRepo` created successfully in archive `s3://bucketName/archiveFolder`

      Roi.

      Reporter: Roi Katz
      E-mail: roi.katz@couchbase.com

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            roi.katz Roi Katz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty