Updated on 2024-08-15 GMT+08:00
Using STS Token
- Log in to the FunctionGraph console, choose Functions > Function List, and click a function name to go to the function details page.
Figure 1 Viewing function details
- Click the Code tab and replace context.getAccessKey() and context.getSecretKey() in the original code with context.getSecurityAccessKey(), context.getSecuritySecretKey(), and context.getSecurityToken(). (Python is used as an example. For details about other languages, see Other Languages.)
Figure 2 Modifying code
The STS token must contain the securityAccessKey, securitySecretKey, and securityToken parameters.
Parent topic: Replacing the Temporary AK/SK
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot