ancient-monkey-64322
10/19/2021, 7:39 PMmissing required configuration key "aws:region"
when trying to update a stack where this config is definitely set.
pulumi up
and pulumi destroy
both give a similar output
pulumi destroy -y --show-config
...
Type Name Status Info
pulumi:pulumi:Stack app-petetest **failed** 1 error; 1 message
- └─ aws:ecs:TaskDefinition api **deleting failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (app-petetest):
Configuration:
aws:region: eu-west-1
error: update failed
aws:ecs:TaskDefinition (api):
error: 1 error occurred:
* missing required configuration key "aws:region": The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.
Set a value using the command `pulumi config set aws:region <value>`.
billowy-army-68599
Pulumi.<stackname>.yaml
look likeancient-monkey-64322
10/19/2021, 8:39 PMconfig:
aws:region: eu-west-1
billowy-army-68599
pulumi refresh
?ancient-monkey-64322
10/19/2021, 8:41 PMDiagnostics:
aws:ecs:TaskDefinition (api):
error: Preview failed: 1 error occurred:
* missing required configuration key "aws:region": The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.
Set a value using the command `pulumi config set aws:region <value>`.
pulumi:pulumi:Stack (klydo-app-petetest):
error: preview failed
billowy-army-68599
ancient-monkey-64322
10/19/2021, 8:42 PMbillowy-army-68599
ancient-monkey-64322
10/19/2021, 8:45 PMbillowy-army-68599
ancient-monkey-64322
10/19/2021, 8:56 PMbillowy-army-68599
ancient-monkey-64322
10/19/2021, 9:18 PMcat ~/Downloads/checkpoint.app.petetest-17.json | pulumi stack import
pulumi refresh
The checkpoints themselves look very similar:
Mensions of region
in the one that didn’t work:
{
"urn": "urn:pulumi:petetest::app::pulumi:providers:aws::default_4_15_0",
"custom": true,
"id": "929f27cb-d6d4-48ab-8183-7e6721e3415f",
"type": "pulumi:providers:aws",
"inputs": { "region": "eu-west-1", "version": "4.15.0" },
"outputs": { "region": "eu-west-1", "version": "4.15.0" }
},
The one that did work…
{
"urn": "urn:pulumi:petetest::klydo-app::pulumi:providers:aws::default_4_14_0",
"custom": true,
"id": "3c814e44-4f28-4f8e-83e3-afd281ea8eeb",
"type": "pulumi:providers:aws",
"inputs": { "region": "eu-west-1", "version": "4.14.0" },
"outputs": { "region": "eu-west-1", "version": "4.14.0" }
},
So I guess the act of importing was what fixed it