Kinesis DataStreams FIPS endpoint in AWS GovCloud(US) is kinesis.us-gov-west-1.amazonaws.com and kinesis.us-gov-east-1.amazonaws.com.
Setting kinesis client with useFipsEndpoint : true, it hits a non-existing endpoint when making any calls.
Expected Behavior
In AWS GovCloud(US) regions, it should hit the correct fips-endpoint URL if useFipsEndpoint is enabled.
Current Behavior
In AWS GovCloud(US) regions, it hits a non-existing endpoint if useFipsEndpoint is enabled. Specifically it hits kinesis-fips.us-gov-west-1.amazonaws.com for us-gov-west-1 region.
Below is the error from a lambda logs:
{
"name": "Error",
"location": "node:internal/errors:496",
"message": "getaddrinfo ENOTFOUND kinesis-fips.us-gov-west-1.amazonaws.com",
"stack": "Error: getaddrinfo ENOTFOUND kinesis-fips.us-gov-west-1.amazonaws.com\n at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)\n at __node_internal_ (node:internal/errors:715:10)\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)\n at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17)"
}
Reproduction Steps
Use the latest aws-sdk-js
configure a kinesis client in any Gov region and set useFipsEndpoint to true
Make any calls using the client - it will fail
Possible Solution
You can override the endpoint-url by using an environment variable AWS_ENDPOINT_URL or simple set useFipsEndpoint to false
Describe the bug
Kinesis DataStreams FIPS endpoint in AWS GovCloud(US) is
kinesis.us-gov-west-1.amazonaws.com
andkinesis.us-gov-east-1.amazonaws.com
.Setting kinesis client with
useFipsEndpoint : true
, it hits a non-existing endpoint when making any calls.Expected Behavior
In AWS GovCloud(US) regions, it should hit the correct fips-endpoint URL if
useFipsEndpoint
is enabled.Current Behavior
In AWS GovCloud(US) regions, it hits a non-existing endpoint if
useFipsEndpoint
is enabled. Specifically it hitskinesis-fips.us-gov-west-1.amazonaws.com
forus-gov-west-1
region.Below is the error from a lambda logs:
Reproduction Steps
Use the latest aws-sdk-js configure a kinesis client in any Gov region and set
useFipsEndpoint
to true Make any calls using the client - it will failPossible Solution
You can override the endpoint-url by using an environment variable
AWS_ENDPOINT_URL
or simple setuseFipsEndpoint
tofalse
Additional Information/Context
No response
SDK version used
v2.1578.0
Environment details (OS name and version, etc.)
AWS GovCloud (US) regions