Linux command
aws-firehose 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all delivery streams
aws firehose list-delivery-streams
Describe a delivery stream
aws firehose describe-delivery-stream --delivery-stream-name [stream_name]
Create a delivery stream
aws firehose create-delivery-stream --delivery-stream-name [stream_name] --s3-destination-configuration RoleARN=[role_arn],BucketARN=[bucket_arn]
Put a single record
aws firehose put-record --delivery-stream-name [stream_name] --record Data=[base64_encoded_data]
Put multiple records
aws firehose put-record-batch --delivery-stream-name [stream_name] --records Data=[data1] Data=[data2]
Update delivery stream destination
aws firehose update-destination --delivery-stream-name [stream_name] --current-delivery-stream-version-id [version] --destination-id [dest_id] --s3-destination-update BucketARN=[new_bucket_arn]
Delete a delivery stream
aws firehose delete-delivery-stream --delivery-stream-name [stream_name]
说明
aws firehose is a subcommand of the AWS CLI that manages Amazon Data Firehose (formerly Kinesis Data Firehose), a service for loading streaming data into data stores and analytics services. Firehose automatically batches, compresses, transforms, and encrypts data before delivering it to destinations like S3, Redshift, OpenSearch, Splunk, or HTTP endpoints. It handles scaling automatically without provisioning. Data can be sent directly via put-record APIs or ingested from Kinesis Data Streams. Firehose buffers records based on size (1-128 MB) or time (60-900 seconds) before delivery.
参数
- list-delivery-streams
- List all delivery streams in the account.
- describe-delivery-stream
- Get detailed configuration of a stream.
- create-delivery-stream
- Create a new delivery stream.
- delete-delivery-stream
- Remove a delivery stream.
- put-record
- Send a single data record.
- put-record-batch
- Send multiple records in one request.
- update-destination
- Modify destination configuration.
- start-delivery-stream-encryption
- Enable server-side encryption.
- stop-delivery-stream-encryption
- Disable encryption.
- --delivery-stream-name _name_
- Name of the delivery stream.
- --record _data_
- Single record with Data field (base64).
- --records _records_
- Array of records for batch put.
- --s3-destination-configuration _config_
- S3 destination settings.
- --redshift-destination-configuration _config_
- Redshift destination settings.
- --extended-s3-destination-configuration _config_
- S3 with data transformation settings.
FAQ
What is the aws-firehose command used for?
aws firehose is a subcommand of the AWS CLI that manages Amazon Data Firehose (formerly Kinesis Data Firehose), a service for loading streaming data into data stores and analytics services. Firehose automatically batches, compresses, transforms, and encrypts data before delivering it to destinations like S3, Redshift, OpenSearch, Splunk, or HTTP endpoints. It handles scaling automatically without provisioning. Data can be sent directly via put-record APIs or ingested from Kinesis Data Streams. Firehose buffers records based on size (1-128 MB) or time (60-900 seconds) before delivery.
How do I run a basic aws-firehose example?
Run `aws firehose list-delivery-streams` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list-delivery-streams do in aws-firehose?
List all delivery streams in the account.