Gerald
11/06/2021, 5:28 PMDo not set the "env" prop while initializing "MyStack" stack. Use the "AWS_PROFILE" environment variable and "--region" CLI option instead.
I am just passing an env just like this
new MyStack(app, 'MyStack', {
env: {
account: '123456789012',
region: 'us-east-1'
},
});
Ross Coundon
11/06/2021, 5:32 PMapp.setDefaultFunctionProps()
Gerald
11/06/2021, 5:35 PMAWS_PROFILE=my-profile yarn start
Ross Coundon
11/06/2021, 5:39 PMapp.setDefaultFunctionProps()
instead