This topic describes how to use Register Transfer Level (RTL) Compiler on an f1 instance.
Prerequisites
Before you perform the operations, make sure that the following requirements are met:
- An Alibaba Cloud account is created. To create an Alibaba Cloud account, go to the Alibaba Cloud official website.
- An f1 instance is created and can access the Internet.
Note Only FaaS F1 basic images from Alibaba Cloud Marketplace can be used in f1 instances. For more information, see Create an f1 instance.
- The rule for allowing traffic on SSH port 22 is configured for the security groups where the f1 instance resides.
- The ID of the f1 instance is obtained from the Instances page in the ECS console.
- An OSS bucket for FaaS is created.
The OSS bucket and the f1 instance must be in the same account and the same region. For more information, see Create buckets.
- To encrypt files, activate Key Management Service (KMS) first.
For more information, see Activate Key Management Service (KMS).
- You must complete the following operations before you can manage FPGA-based instance
as a RAM user:
- Create a RAM user and grant permissions to the RAM user. For more information, see
Create a RAM user and Grant permissions to a RAM user.
The permissions you must grant to the RAM users include AliyunECSReadOnlyAccess, AliyunOSSFullAccess, and AliyunRAMFullAccess.
- Click here to grant permissions to FaaS.
- Obtain the AccessKey ID and AccessKey secret of the RAM user.
- Create a RAM user and grant permissions to the RAM user. For more information, see
Create a RAM user and Grant permissions to a RAM user.
Background information
- All operations described in this topic must be performed by a single account within the same region.
- We strongly recommend that you manage FaaS instances as a RAM user. To avoid unwanted operations, you must authorize the RAM user to perform required actions only. You must create a role for the RAM user and grant temporary permissions to the role to access the specified OSS bucket. Then, you can download the original DCP project from the OSS bucket and manage the FPGA image. If you want to encrypt the IP address, you must authorize the RAM user to use Key Management Service (KMS). If you want the RAM user to check permissions of Alibaba Cloud accounts, you must authorize the RAM user to view the resources of Alibaba Cloud accounts.