By using AWS re:Post, you agree to the Terms of Use
Questions in Game Tech
Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Building the AWS C++ SDK with CUSTOM_MEMORY_MANAGEMENT on fails unit tests

I am trying to build the AWS C++ SDK to use with the Unreal game engine. I have been using it for a while, however after recently updating my Unreal plugin with the latest SDK components, I ran into issues (crashes) because Unreal has its own custom memory management which does not seem compatible with the AWS SDK's. To resolve this I have tried to override AWS's memory manager with one compatible with Unreal, by implementing `Aws::Utils::Memory::MemorySystemInterface` and calling `Aws::Utils::Memory::InitializeAWSMemorySystem(AWSMemoryManager);` This, however, doesn't work unless the SDK has been built with the `CUSTOM_MEMORY_MANAGEMENT` flag. So, I went back to the SDK and tried to build it with custom memory management on with the following commands: ``` cmake.exe "../aws-sdk-cpp" -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="core;firehose;cognito-identity" -DCUSTOM_MEMORY_MANAGEMENT=1 -DCPP_STANDARD=17 -DENABLE_UNITY_BUILD=1 MSBuild.exe ALL_BUILD.vcxproj -p:Configuration=Release ``` However, this seems to result in aws-core failing its unit tests. I get the following errors: ``` ...\AWS\sdk\aws-sdk-cpp\aws-cpp-sdk-core-tests\RunTests.cpp(40): error : Expected equality of these values: [...\AWS\sdk\membuild\aws-cpp-sdk-core-tests\aws-cpp-sdk-core-tests.vcxproj] memorySystem.GetCurrentOutstandingAllocations() Which is: 37 0ULL Which is: 0 ...\AWS\sdk\aws-sdk-cpp\aws-cpp-sdk-core-tests\RunTests.cpp(40): error : Expected equality of these values: [...\AWS\sdk\membuild\aws-cpp-sdk-core-tests\aws-cpp-sdk-core-tests.vcxproj] memorySystem.GetCurrentBytesAllocated() Which is: 3472 0ULL Which is: 0 ...\AWS\sdk\aws-sdk-cpp\aws-cpp-sdk-core-tests\RunTests.cpp(40): error : Value of: memorySystem.IsClean() [...\AWS\sdk\membuild\aws-cpp-sdk-core-tests\aws-cpp-sdk-core-tests.vcxproj] Actual: false Expected: true ``` Does anyone have any clue why these unit tests are failing and how I can go about resolving it?
0
answers
0
votes
29
views
asked a month ago

AWS Game Lift Server: Best Solution for Generating and Rotating API Keys for AWS Server Authentication?

We are currently setting up some authentication systems for our UE4 game servers so that we are sure they are the only devices/users that are capable of accessing our internal API / LAMDBA functions. With that in mind, there is a desire to not hard code any COGNITO user ID's or tokens into the actual server-code itself. Instead, we would like to pursue having these tokens be generated and cycled through on AWS's side, to keep it decoupled. We are undecided whether these tokens should be for the life of the Gamelift server or for a set period of time—whichever is most feasible. This way, if we need to adjust access to certain features down the road, it will not require an update to the deployed Unreal Engine server build. Does AWS API or LAMDBA have any features out of the box to check if an API request is coming from within AWS, ideally from one of the active Gamelift instances? While we may still need to create a COGNITO identity for the servers, or just check the local IP of the running Gamelift servers, the ideal flow would look like: 1) UE4 game server on AWS asks for a token on Startup. 2) LAMDBA Authorization script checks to make sure it is valid and coming from within AWS/Gamelift 3) Once Validated, LAMDBA function provides a token to enable server to use in backend LAMDBA functions. 4) Before Gamelift Server shutdown, revoke access or add to a "black-listed" token Database to prevent second use before token expiration.
1
answers
0
votes
49
views
asked 2 months ago