Model environments as arbitrary names given to some method of getting credentials to an AWS account:
They can be modeled in cdk.json
files (although maybe AWS profiles don't need to me "copied" in there - they're discoverable already).
Environments may also include additional context values, too.
__The CDK team have discussed this design__
@rix0rrr wrote:
I think a profile name also counts as a source of AWS credentials?
An environment should definitely also contain a region, and the account ID should be available from inside the CDK.
Here are some ideas that I'm thinking of:
From Romain 鈥撀爉inimum bar would be letting users specify different AWS credentials profiles for different stacks in an app.
This is going to be addressed as part of the CI/CD project (copy: @rix0rrr)
Most helpful comment
From Romain 鈥撀爉inimum bar would be letting users specify different AWS credentials profiles for different stacks in an app.