From 087fdfbf6f09f23bbd67c8d0272fa27e5077ea0d Mon Sep 17 00:00:00 2001 From: Jeet Nihalani Date: Tue, 17 Aug 2021 07:01:46 -0600 Subject: [PATCH] fix: fix BYOB to work for EC2 Windows when AppStream is enabled --- .../templates/service-catalog/ec2-windows-instance.cfn.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/addon-base-raas/packages/base-raas-cfn-templates/src/templates/service-catalog/ec2-windows-instance.cfn.yml b/addons/addon-base-raas/packages/base-raas-cfn-templates/src/templates/service-catalog/ec2-windows-instance.cfn.yml index 2a2b83c93c..6d441e7317 100644 --- a/addons/addon-base-raas/packages/base-raas-cfn-templates/src/templates/service-catalog/ec2-windows-instance.cfn.yml +++ b/addons/addon-base-raas/packages/base-raas-cfn-templates/src/templates/service-catalog/ec2-windows-instance.cfn.yml @@ -351,6 +351,11 @@ Resources: $startS3SyncScriptContent = @' # enable AWS_SDK_LOAD_CONFIG to 1. This will allow S3 session to use .aws/profile and .aws/credentials file $env:AWS_SDK_LOAD_CONFIG = 1 + # Use STS regional endpoint instead of global one. This allows external studies to connect with local interface endpoint if it exists. + # Refer https://docs.aws.amazon.com/sdkref/latest/guide/setting-global-sts_regional_endpoints.html + $env:AWS_STS_REGIONAL_ENDPOINTS = "regional" + $env:AWS_DEFAULT_REGION = "${AWS::Region}" + $defaultS3Mounts = '${S3Mounts}' | ConvertTo-Json $arguments = "-defaultS3Mounts=$defaultS3Mounts -destination=d:\ -region=${AWS::Region} -recurringDownloads=${RecurringDownloads} -downloadInterval=${DownloadInterval} -stopRecurringDownloadsAfter=${StopRecurringDownloadsAfter}"