Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: fix BYOB to work for EC2 Windows when AppStream is enabled (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
jn1119 authored Aug 17, 2021
1 parent 485611b commit d0a85f0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit d0a85f0

Please sign in to comment.