ssm: account/region are not specified at the stack level, but they are #27773
Labels
@aws-cdk/aws-ssm
Related to AWS Systems Manager
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
I have two stacks, A and B. Stack A adds sets an SSM param. Stack B consumes this param.
Now I get this error:
Error: Cannot retrieve value from context provider ssm since account/region are not specified at the stack level. Configure "env" with an account and region when you define your stack.
But both stacks have account and region specified at the stack level like so:
const devenv = { account: "REDACTED", region: "eu-central-1" };
new Database(app,
foo-database-test
, {stackName: "database",
env: devenv,
});
Expected Behavior
Account and region should be used from the stack level and the error should not be thrown.,
Current Behavior
Now I get this error:
Error: Cannot retrieve value from context provider ssm since account/region are not specified at the stack level. Configure "env" with an account and region when you define your stack.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.103.1 (build 3bb19ac)
Framework Version
No response
Node.js Version
18
OS
MacOS
Language
TypeScript
Language Version
5.2.2
Other information
No response
The text was updated successfully, but these errors were encountered: