This message was deleted.
# general
s
This message was deleted.
a
I had added a config.require("aws:region") statement, the problem went away when I removed the statement
b
@average-kilobyte-47828 it’s because the config.require isn’t correct. You need to declare a config of type aws and then you can get the region Something like (typing on phone) Const conf = new Pulumi.Config(“aws”) Const region = conf.get(“region”)
a
thanks @broad-dog-22463, that makes sense but wasn't apparent to me from the docs
b
Sorry about that - there are a couple of ways here to get the region - that namespace config object or I believe you can use Pulumi.config.region (without needing to instantiate the config object)
a