Skip to content

Conversation

@viren-nadkarni
Copy link
Member

@viren-nadkarni viren-nadkarni commented Oct 17, 2024

Important

This is a breaking change designated for LocalStack v4.0.0

Background

The old implementation of multi-accounts in LocalStack used environment variables that determined the account/region of the sandbox. This impacted various other features, most notably the init hooks where we used to inherit the same environment variables when running the startup script. The startup scripts could be written without the need for explicit AWS credentials.

Since then, LocalStack moved to a multi-accounts implementation based on the request context. It no longer requires a global env var setting of account/region. But to maintain backward compatibility with existing init hook startup scripts, we started setting default account/region values in its environment.

Changes

With LocalStack v4, the default AWS credentials will no longer be set in the init hook execution environment.

Startup scripts will now be required to set explicit credentials.

Related

Closes:

@viren-nadkarni viren-nadkarni self-assigned this Oct 17, 2024
@viren-nadkarni viren-nadkarni added the semver: major Breaking changes which can be included in a major release only label Oct 17, 2024
@github-actions
Copy link

github-actions bot commented Oct 17, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files  ±0    2 suites  ±0   4m 1s ⏱️ -1s
421 tests ±0  369 ✅ ±0   52 💤 ±0  0 ❌ ±0 
842 runs  ±0  738 ✅ ±0  104 💤 ±0  0 ❌ ±0 

Results for commit 034383f. ± Comparison against base commit 73d2dc0.

♻️ This comment has been updated with latest results.

@viren-nadkarni viren-nadkarni added this to the 4.0 milestone Oct 17, 2024
@github-actions
Copy link

github-actions bot commented Oct 17, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 43m 10s ⏱️ +28s
3 536 tests ±0  3 128 ✅ ±0  408 💤 ±0  0 ❌ ±0 
3 538 runs  ±0  3 128 ✅ ±0  410 💤 ±0  0 ❌ ±0 

Results for commit 034383f. ± Comparison against base commit 73d2dc0.

♻️ This comment has been updated with latest results.

@viren-nadkarni viren-nadkarni marked this pull request as ready for review October 17, 2024 11:06
@viren-nadkarni viren-nadkarni requested a review from thrau as a code owner October 17, 2024 11:06
@viren-nadkarni viren-nadkarni requested a review from dfangl October 17, 2024 11:06
@viren-nadkarni viren-nadkarni changed the base branch from master to release/v4 November 8, 2024 08:47
@viren-nadkarni viren-nadkarni mentioned this pull request Nov 8, 2024
9 tasks
@localstack localstack deleted a comment from localstack-bot Nov 8, 2024
@viren-nadkarni viren-nadkarni requested review from dfangl and dominikschubert and removed request for thrau November 11, 2024 09:09
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.

LGTM, nice to get rid of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver: major Breaking changes which can be included in a major release only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants