Skip to content

Commit

Permalink
Use profile from aws configuration on Provider (pulumi#300)
Browse files Browse the repository at this point in the history
If you're using a non-default profile with this project, your ACM cert will be created using your default profile, which is not expected.
  • Loading branch information
c0bra authored and lukehoban committed May 8, 2019
1 parent 9e463f1 commit 843089c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aws-ts-static-website/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ let certificateArn: pulumi.Input<string> = config.certificateArn!;
if (config.certificateArn === undefined) {

const eastRegion = new aws.Provider("east", {
profile: aws.config.profile,
region: "us-east-1", // Per AWS, ACM certificate must be in the us-east-1 region.
});

Expand Down

0 comments on commit 843089c

Please sign in to comment.