You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en_US/data-integration/s3.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,9 @@ EMQX supports Amazon S3 and other S3-compatible storage services. You can use AW
68
68
69
69
1. In the [AWS S3 Console](https://console.amazonaws.cn/s3/home), click the **Create bucket** button. Follow the instructions to enter the relevant information, such as bucket name and region, to create an S3 bucket. For detailed operations, refer to the [AWS Documentation](https://docs.amazonaws.cn/AmazonS3/latest/userguide/creating-bucket.html).
70
70
2. Set bucket permissions. After the bucket is created successfully, select the bucket and click the **Permissions** tab. Based on your needs, you can set the bucket to public read/write, private, or other permissions.
71
-
3. Obtain access keys. In the AWS Console, search for and select the **IAM** service. Create a new user for S3 and obtain the Access Key and Secret Key.
71
+
3. Obtain access keys.
72
+
-**Manual Configuration**: In the AWS Console, search for and select the **IAM** service. Create a new user for S3 and obtain the Access Key ID and Secret Access Key. See [AWS guide: Managing access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).
73
+
-**Automatic Retrieval (EC2 only)**: If EMQX is running on **AWS EC2**, [attach an **IAM role**](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html) with sufficient permissions. EMQX can automatically fetch temporary credentials from Instance Metadata via [**IMDSv2** API](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-metadata-security-credentials.html).
72
74
73
75
With the Amazon S3 bucket created and configured, you are now ready to create an Amazon S3 Sink in EMQX.
74
76
@@ -109,13 +111,18 @@ Before adding the S3 Sink, you need to create the corresponding connector.
109
111
110
112
1. Go to the Dashboard **Integration** -> **Connector** page.
111
113
2. Click the **Create** button in the top right corner.
112
-
3. Select **Amazon S3** as the connector type and click next.
113
-
4. Enter the connectorname, a combination of upper and lowercase letters and numbers. Here, enter `my-s3`.
114
+
3. Select **Amazon S3** as the connector type and click **Next**.
115
+
4. Enter a name for the connector. The name must start with a letter or number and can contain letters, numbers, hyphens, or underscores. In this example, enter `my-s3`.
114
116
5. Enter the connection information.
115
117
- If you are using the Amazon S3 bucket, enter the following information:
116
118
-**Host**: The host varies by region and is formatted as `s3.{region}.amazonaws.com`.
117
119
-**Port**: Enter `443`.
118
-
-**Access Key ID** and **Secret Access Key**: Enter the access keys created in AWS.
120
+
-**Access Key ID** and **Secret Access Key**:
121
+
122
+
- Enter the access keys created in AWS, or
123
+
- Leave blank if running EMQX on EC2 with an attached IAM role.
124
+
125
+
See the "Amazon S3" tab in [Prepare S3 Bucket](#prepare-s3-bucket) for details.
119
126
- If you are using MinIO, enter the following information:
120
127
-**Host**: Enter `127.0.0.1`. If you are running MinIO remotely, enter the actual host address.
0 commit comments