Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26823

Allow multiple configurations for AWSConfigurationService

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF02, 11.1, 2021.0
    • Component/s: AWS
    • Release Notes Summary:
      Multiple AWS configurations are supported.
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      AWS configuration can now specify an id with:

        <extension target="org.nuxeo.runtime.aws.AWSConfigurationService" point="configuration">
          <configuration id="myconfig">
            <accessKeyId>MY_ACCESS_KEY_ID</accessKeyId>
            <secretKey>MY_SECRET_KEY</secretKey>
            <region>MY_REGION</region>
          </configuration>
        </extension> 

      If the id is not specified, default is used.

      To get to this configuration, one can then use:

      new NuxeoAWSCredentialsProvider(id)
      new NuxeoAWSRegionProvider(id).getRegion()

      Note that if the configuration is not found, the providers will still fall back on the default AWS SDK behavior to look in the OS environment, Java system properties, AWS profile or EC2 container credentials (which don't take into account any configuration id).

      Show
      AWS configuration can now specify an id  with: <extension target= "org.nuxeo.runtime.aws.AWSConfigurationService" point= "configuration" > <configuration id= "myconfig" > <accessKeyId>MY_ACCESS_KEY_ID</accessKeyId> <secretKey>MY_SECRET_KEY</secretKey> <region>MY_REGION</region> </configuration> </extension> If the id is not specified, default is used. To get to this configuration, one can then use: new NuxeoAWSCredentialsProvider(id) new NuxeoAWSRegionProvider(id).getRegion() Note that if the configuration is not found, the providers will still fall back on the default AWS SDK behavior to look in the OS environment, Java system properties, AWS profile or EC2 container credentials (which don't take into account any configuration id).
    • Sprint:
      nxFG 11.1.3

      Description

      Currently AWSConfigurationService provides only a default configuration.  We would like to extend it to support multiple AWS configurations.

      The providers would also need to be updated to support:

       

      NuxeoAWSCredentialsProvider.getInstance(configid)
      NuxeoAWSRegionProvider.getInstance(configid)
      

       

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h