-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Use non-default formatted access key ID for tests #8204
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
083f912
to
0bf5d93
Compare
0bf5d93
to
c4449e5
Compare
a554e1b
to
62a829f
Compare
62a829f
to
ef98a30
Compare
ef98a30
to
832502e
Compare
3b74fa2
to
9b1350a
Compare
5f43208
to
d6fa923
Compare
d6fa923
to
148d4fd
Compare
819a00e
to
a3786df
Compare
a3786df
to
0abd949
Compare
eb815a5
to
7fccaa6
Compare
viren-nadkarni
commented
Feb 5, 2024
localstack/services/infra.py
Outdated
os.environ["AWS_SECRET_ACCESS_KEY"] = constants.INTERNAL_AWS_SECRET_ACCESS_KEY | ||
session = boto3.Session() | ||
credentials = session.get_credentials() | ||
assert credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boto credentials must be explicit and determined from the request context
viren-nadkarni
commented
Feb 5, 2024
localstack/constants.py
Outdated
@@ -8,9 +8,6 @@ | |||
# constant to represent the "local" region, i.e., local machine | |||
REGION_LOCAL = "local" | |||
|
|||
# dev environment | |||
ENV_DEV = "dev" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code
7fccaa6
to
41ae35b
Compare
79b6693
to
85f36ec
Compare
d293f5e
to
78f7520
Compare
This was referenced Feb 13, 2024
1b8a96a
to
ea9cbb0
Compare
ea9cbb0
to
d2af625
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
semver: minor
Non-breaking changes which can be included in minor releases, but not in patch releases
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR makes use of formatted access key IDs for tests that resolve to
000000000001
(for primary account) and000000000002
(for secondary account). The primary account is used for all tests (via theaws_client
fixture) whereas the latter is used for cross-account testing (viasecondary_aws_client
). This PR also changes to a non-default test region to make sure multi-region works correctly.In effect, this assures that all services in LocalStack now can work with any arbitrary account ID, and furthermore that service integrations also use the correct account ID. Prior to this PR the fallback account ID
000000000000
and default regionus-east-1
was used across LocalStack. For example, when using a service integration with a non-fallback account ID, the called service would still use the fallback account ID.Related
Supersedes: #7040
Closes: #7041