'Pulumi gives invalid aws:region error when deploying to AWS

I am having a tinker with Pulumi having fallen out of love with Terraform. However, when following the gettins started guide, I'm receiving the following error when running pulumi up

Diagnostics:
  aws:s3:Bucket (my-bucket):
    error: 1 error occurred:
        * Invalid AWS Region:

The pulumi.yaml file contains only this:

    config:
  aws:region: eu-west-1

Does anyone get this issue or does anyone know how to resolve it?

Thanks in advance,

Angus



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source