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

AWS: use pre-created IAM role for AssumeRole related integration tests #4909

Closed
wants to merge 1 commit into from

Conversation

jackye1995
Copy link
Contributor

as a part of AWS CI effort, remove IAM role that is created during tests and use a pre-created IAM role. The role creation and configuration step will be defined in a CDK stack for easy developer setup.

@amogh-jahagirdar @xiaoxuandev @rajarshisarkar @singhpk234

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just some minor non-blocking stuff.

@@ -117,7 +65,7 @@ public void testAssumeRoleGlueCatalog() throws Exception {
Assert.assertEquals(AccessDeniedException.class, e.getClass());
}

Namespace namespace = Namespace.of("allowed_" + UUID.randomUUID().toString().replace("-", ""));
Namespace namespace = Namespace.of("iceberg_aws_ci_" + UUID.randomUUID().toString().replace("-", ""));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: iceberg_aws_ci_ maybe could be a static prefix? Not blocking though considering it was already like that

try {
inputFile.exists();
s3Client.getBucketAccelerateConfiguration(GetBucketAccelerateConfigurationRequest.builder()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess here we can use any method, so it does not matter but would getBucket just be less verbose to read?

@@ -88,6 +88,10 @@ public static String testAccountId() {
return System.getenv("AWS_TEST_ACCOUNT_ID");
}

public static String testAssumeRoleArn() {
return System.getenv("AWS_TEST_ASSUME_ROLE_ARN");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jackye1995, we recently added EnvironmentUtil that can resolve properties using environment variables in #5018. Can we use that here instead of adding this?

Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 11, 2024
Copy link

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants