Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

842 aws bedrock connector #2832

Merged
merged 7 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bundle/default-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<groupId>io.camunda.connector</groupId>
<artifactId>connector-aws-lambda</artifactId>
</dependency>
<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-aws-bedrock</artifactId>
</dependency>
<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-google-drive</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
<artifactId>connector-sendgrid</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-aws-bedrock</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-aws-sns</artifactId>
Expand Down
12 changes: 10 additions & 2 deletions connectors/aws/aws-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<licenses>
<license>
<name>Camunda Self-Managed Free Edition license</name>
<url>https://camunda.com/legal/terms/cloud-terms-and-conditions/camunda-cloud-self-managed-free-edition-terms/</url>
<url>
https://camunda.com/legal/terms/cloud-terms-and-conditions/camunda-cloud-self-managed-free-edition-terms/
</url>
</license>
<license>
<name>Camunda Self-Managed Enterprise Edition license</name>
Expand All @@ -31,7 +33,13 @@
<artifactId>aws-java-sdk-core</artifactId>
<version>${version.aws-java-sdk}</version>
</dependency>


<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>auth</artifactId>
<version>${version.software-aws-java-sdk}</version>
</dependency>

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-sagemakerruntime</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. Licensed under a proprietary license.
* See the License.txt file for more information. You may not use this file
* except in compliance with the proprietary license.
*/
package io.camunda.connector.aws;

import io.camunda.connector.aws.model.impl.AwsAuthentication;
import io.camunda.connector.aws.model.impl.AwsBaseRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.auth.credentials.*;

public class CredentialsProviderSupportV2 {

private static final Logger LOGGER = LoggerFactory.getLogger(CredentialsProviderSupportV2.class);

public static AwsCredentialsProvider credentialsProvider(AwsBaseRequest request) {
AwsAuthentication authentication = request.getAuthentication();
if (authentication instanceof AwsAuthentication.AwsStaticCredentialsAuthentication sca) {
LOGGER.debug("Using StaticCredentialsProvider for AWS authentication (using aws sdk v2)");
return StaticCredentialsProvider.create(
AwsBasicCredentials.create(sca.accessKey(), sca.secretKey()));
}
LOGGER.debug("Falling to DefaultCredentialsProvider for AWS authentication (using aws sdk v2)");
return DefaultCredentialsProvider.create();
}
}
5 changes: 5 additions & 0 deletions connectors/aws/aws-bedrock/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under one or more contributor license agreements and licensed to you under a proprietary license.
You may not use this file except in compliance with the proprietary license.
The proprietary license can be either the Camunda Self-Managed Free Edition license (available on Camunda’s website) or the Camunda Self-Managed Enterprise Edition license (a copy you obtain when you contact Camunda).
The Camunda Self-Managed Free Edition comes for free but only allows for usage of the software (file) in non-production environments.
If you want to use the software (file) in production, you need to purchase the Camunda Self-Managed Enterprise Edition.
Loading