State and account isolation
Development and production need explicit separation of state, credentials, and resources. Workspaces separate state instances but are not automatically a strong security boundary. Distinct AWS accounts and backend access policies can provide stronger isolation when the risk warrants them. For example, development uses a learning account and dev state key; production uses another account and a restricted prod key.
Development uses a learning account and dev state key; production uses another account and a restricted prod key.
A developer switches to a development workspace while still using a production administrator profile. The state selection changed, but the credential authority did not. Workspaces can separate state instances; they do not automatically provide separate accounts, network boundaries, or permission sets. Verify both state context and AWS identity before changes.
Isolation limits interference and blast radius. A workspace selects a state instance within a configuration/backend arrangement. An account provides an AWS resource and identity boundary. Stronger separation may use different accounts, backend policies, and pipeline roles. This adds administration but reduces the chance that a local mistake affects production. A shared module can still serve both environments without sharing their state. Explicitly name owners, keys, and permitted credentials, and document what prevents development automation from accessing production. Naming folders differently is useful organization, but enforcement must come from actual state selection and access controls.
Development uses a learning account and dev state key; production uses another account and a restricted prod key.
Do not overlook this operational distinction: Distinct AWS accounts and backend access policies can provide stronger isolation when the risk warrants them.