Use AddRoleToInstanceProfile with a CLI
The following code examples show how to use AddRoleToInstanceProfile.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code examples:
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.