sparse-intern-71089
02/03/2023, 2:30 PMlittle-cartoon-10569
02/04/2023, 7:19 PMlittle-cartoon-10569
02/04/2023, 7:20 PMnarrow-house-7133
02/06/2023, 11:52 AMnarrow-house-7133
02/06/2023, 2:31 PM# Pulumi.dev.yaml
config:
aws:profile: dev
# Pulumi.prod.yaml
config:
aws:profile: prod
to make the above provider work, I need to pass the profile name, but I can't hardcode it in the typescript code. It has to work some thing like:
const awsUsEast1 = new aws.Provider("aws-us-east-1", { region: "us-east-1", profile: pulumi.currentProfile() });
is there such way to get the current aws profile from the current pulumi config?little-cartoon-10569
02/07/2023, 8:50 PMconst awsUsEast1 = new aws.Provider("aws-us-east-1", { region: "us-east-1", profile: new pulumi.Config("aws").require("profile")) });
narrow-house-7133
02/08/2023, 8:24 AM