All automation API is doing is setting that config value in the config file. So if you already have the value in that file you should be good.
If you want to change the value I think you just want “us-west-2” as a string instead of what you are doing with auto.ConfigValue