Skip to content

Commit 1cd146c

Browse files
committed
Handle https protocol for endpoint_url
1 parent 3e8fd70 commit 1cd146c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/utils/configure-aws.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ import type { Telemetry } from "./telemetry.ts";
1515

1616
const LOCALSTACK_CONFIG_PROFILE_NAME = "profile localstack";
1717
const VALID_ENDPOINT_URLS = [
18-
"http://localhost.localstack.cloud:4566", // default
18+
"http://localhost.localstack.cloud:4566",
19+
"https://localhost.localstack.cloud:4566",
1920
"http://127.0.0.1:4566",
21+
"https://127.0.0.1:4566",
2022
"http://localhost:4566",
23+
"https://localhost:4566",
2124
];
2225
const LOCALSTACK_CONFIG_PROPERTIES = {
2326
region: "us-east-1",
@@ -143,8 +146,8 @@ async function configureAwsConfigProfile(
143146
// check if dnsResolveCheck is successful
144147
const isDnsResolved = await dnsResolveCheck();
145148
const endpointUrl = isDnsResolved
146-
? "http://localhost.localstack.cloud:4566"
147-
: VALID_ENDPOINT_URLS[1];
149+
? "https://localhost.localstack.cloud:4566"
150+
: "https://127.0.0.1:4566";
148151

149152
const updatedIniFile = updateIniSection(
150153
iniFile,

0 commit comments

Comments
 (0)