Skip to content

Fix/multi account kinesis #10188

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

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Fix/multi account kinesis #10188

merged 2 commits into from
Feb 7, 2024

Conversation

macnev2013
Copy link
Contributor

@macnev2013 macnev2013 commented Feb 6, 2024

Motivation

This PR fixes multi-account support for kinesis related tests. This is a follow-up PR for #9785. We have discovered that some of the changes made in #8204 were causing failure in test cases when running against formatted-access-key-id-for-tests branch.

Changes

We have added AWS_SECRET_ACCESS_KEY additionally in the environment variable while running the KCL command. Since in the original PR we have removed the function setting up access key and secret key globally.

Testing

Added non-default account related changes in commit f6c3fd.

TODO

What's left to do:

  • Let the CI run complete
  • Revert the changes

@macnev2013 macnev2013 added aws:kinesis Amazon Kinesis area: multi-account Multi-tenancy in LocalStack semver: patch Non-breaking changes which can be included in patch releases labels Feb 6, 2024
Copy link

github-actions bot commented Feb 6, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 21s ⏱️
386 tests 335 ✅  51 💤 0 ❌
772 runs  670 ✅ 102 💤 0 ❌

Results for commit 306bfff.

Copy link

github-actions bot commented Feb 6, 2024

LocalStack Community integration with Pro

    2 files      2 suites   1h 23m 7s ⏱️
2 623 tests 2 374 ✅ 249 💤 0 ❌
2 625 runs  2 374 ✅ 251 💤 0 ❌

Results for commit 1ca39aa.

♻️ This comment has been updated with latest results.

Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

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

LGTM, just also tagging @dfangl to take a look, since the config/constants changes seem significant.

@thrau thrau requested a review from dfangl February 6, 2024 19:08
@macnev2013
Copy link
Contributor Author

Hey @thrau, Apologies for the confusion. This commit will be reverted.

@macnev2013 macnev2013 force-pushed the fix/multi-account-kinesis branch from 306bfff to 011a732 Compare February 6, 2024 19:50
@coveralls
Copy link

coveralls commented Feb 6, 2024

Coverage Status

coverage: 83.845% (-0.001%) from 83.846%
when pulling 1ca39aa on fix/multi-account-kinesis
into d49889b on master.

Copy link
Member

@dfangl dfangl 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 :)

@@ -245,6 +245,7 @@ def _start_kcl_client_process(
env_vars = {
"AWS_CBOR_DISABLE": "true",
"AWS_ACCESS_KEY_ID": account_id,
"AWS_SECRET_ACCESS_KEY": account_id,
Copy link
Member

Choose a reason for hiding this comment

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

I think it is fine to set this here, but for this value it should be possible to set anything. Any particular reason to set it to the account id?

Copy link
Contributor Author

@macnev2013 macnev2013 Feb 7, 2024

Choose a reason for hiding this comment

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

For AWS_SECRET_ACCESS_KEY, we can set internal secret key (__internal_call__) or account_id here. @viren-nadkarni suggested to use account id here.

@macnev2013
Copy link
Contributor Author

macnev2013 commented Feb 7, 2024

Ext Integration Tests workflow run: https://github.com/localstack/localstack-ext/actions/runs/7813257205

@macnev2013 macnev2013 force-pushed the fix/multi-account-kinesis branch from 011a732 to 1ca39aa Compare February 7, 2024 10:17
@macnev2013
Copy link
Contributor Author

Ext Integration Tests workflow run: https://github.com/localstack/localstack-ext/actions/runs/7813257205

Ext pipeline is 🟢

@macnev2013 macnev2013 merged commit 3ac3154 into master Feb 7, 2024
@macnev2013 macnev2013 deleted the fix/multi-account-kinesis branch February 7, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: multi-account Multi-tenancy in LocalStack aws:kinesis Amazon Kinesis semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants