Greetings from AWS !
The authentication sign process is explained here . You can implement your own code following the process explained in this document  to call the CreateSession API of Roles Anywhere. Though there is no sample code from AWS side, I would like to share this third-party document  which contains sample code in Python making request to CreateSession API following the signing process explained in .
Note: AWS would not be able to vouch for the integrity of the content being provided in third-party links. Kindly ensure to implement in your test environment first and then to use in your production environment.
That said, there is an existing feature request on making the code open source. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.
I believe the information is helpful to you. In case you have any further queries/concerns then please let us know. We will be more than happy to assist you further.
Wish you an AWeSome day ahead and stay safe ! 🙂
Step by step for IAM Roles Anywhere with your own CA (using openssl) + Cloudformation, CDK ExampleAccepted Answerasked 2 months ago
Help setting up IAM Roles AnywhereAccepted Answerasked 3 months ago
ECS Anywhere -- Register External Instances link deadAccepted Answerasked 7 months ago
Using an Intermediate CA with IAM Roles Anywhereasked 2 months ago
Does AWS Roles Anywhere support keys in an enclave?asked 2 months ago
AWS Error while assigning Rolesasked 3 years ago
Identify in-built or default IAM RolesAccepted Answerasked 7 months ago
EKS Anywhere Supportasked 5 months ago
AWS Amplify and AWS Cognito: Assignment of users to multiple rolesasked 10 months ago
How to authenticate with AWS IAM Roles Anywhere in codeAccepted Answerasked a month ago