-
Notifications
You must be signed in to change notification settings - Fork 12
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
Errors while compiling the Java examples of the latest version of the libraray #1475
Comments
Hey @franckouam! The Are you trying to build the examples from source? Or are you trying to replicate an example in a sample project?
and
You should consolidate these duplicates to one. Ideally, you would depend on the latest publish versions. For the AWS Database Encryption SDK for DynamoDB that is 3.7.0 and for the AWS Material Providers Library that is 1.7.0 |
Hey @josecorella! Thanks for your answer. For the context i'm trying to build the examples from source. I updated the
I still have errors while running I also saw that there are some AWS configuration string in the file TestUtils.java package software.amazon.cryptography.examples;
public class TestUtils {
public static final String TEST_KEYSTORE_NAME = "KeyStoreDdbTable";
public static final String TEST_LOGICAL_KEYSTORE_NAME = "KeyStoreDdbTable";
public static final String TEST_KEYSTORE_KMS_KEY_ID =
"arn:aws:kms:us-west-2:370957321024:key/9d989aa2-2f9c-438c-a745-cc57d3ad0126";
public static final String TEST_AWS_ACCOUNT_ID = "658956600833";
public static final String TEST_AWS_REGION = "us-west-2";
// These are public KMS Keys that MUST only be used for testing, and MUST NOT be used for any production data
public static final String TEST_KMS_KEY_ID =
"arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f";
public static final String TEST_MRK_KEY_ID =
"arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7";
public static final String TEST_KMS_RSA_KEY_ID =
"arn:aws:kms:us-west-2:658956600833:key/8b432da4-dde4-4bc3-a794-c7d68cbab5a6";
public static final String TEST_MRK_REPLICA_KEY_ID_US_EAST_1 =
"arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7";
public static final String TEST_MRK_REPLICA_KEY_ID_EU_WEST_1 =
"arn:aws:kms:eu-west-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7";
// Our tests require access to DDB Table with this name
public static final String TEST_DDB_TABLE_NAME =
"DynamoDbEncryptionInterceptorTestTable"; Should I edit these configuration ? Thanks again |
Hey @franckouam! The errors you are getting are due to your assumed role while executing the tests not having access to our example resources. In this case the KMS Keys. You should be able to replace the Let us know if you run into any more issues. |
Issue: Running Basic Example (
BasicPutGetExample
) in AWS Database Encryption SDK for DynamoDBDescription
I am trying to run the Java basic example
BasicPutGetExample
in the AWS Database Encryption SDK for DynamoDB to understand its initial functionality. My goal is to run themain
without modifying or adding any existing operations.Environment
./gradlew
)Steps Followed
Configured the project as indicated in this README
Added the recommended dependencies. After that, the dependencies section in the file
build.gradle.kts
looks like this:./gradlew build
.Problem Encountered
After compilation, I have the errors below:
Question
Do you have any suggestions or specific steps to resolve this issue and successfully run the example? Any assistance or guidance on the required configurations would be greatly appreciated.
The text was updated successfully, but these errors were encountered: