From 843089c0715a0e1bde64c75779fab812cab3dd9a Mon Sep 17 00:00:00 2001 From: Brian Hann Date: Wed, 8 May 2019 15:31:33 -0500 Subject: [PATCH] Use profile from aws configuration on Provider (#300) 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. --- aws-ts-static-website/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/aws-ts-static-website/index.ts b/aws-ts-static-website/index.ts index e706efec5..2f419737c 100644 --- a/aws-ts-static-website/index.ts +++ b/aws-ts-static-website/index.ts @@ -86,6 +86,7 @@ let certificateArn: pulumi.Input = 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. });