Skip to content

Instantly share code, notes, and snippets.

@singhksandeep25
Last active February 13, 2021 21:10
Show Gist options
  • Save singhksandeep25/8aa1367bf73b535e0663d91a540ffee7 to your computer and use it in GitHub Desktop.
Save singhksandeep25/8aa1367bf73b535e0663d91a540ffee7 to your computer and use it in GitHub Desktop.
Kinesis Stream Creation Example
import boto3
REGION = 'ap-south-1'
ACCESS_KEY_ID = 'access_key_id_of_your_account'
SECRET_ACCESS_KEY = 'secret_access_key_of_your_account'
kinesis_client = boto3.client('kinesis', region_name=REGION, aws_access_key_id=ACCESS_KEY_ID,
aws_secret_access_key=SECRET_ACCESS_KEY)
kinesis_client.create_stream(
StreamName='demo-kinesis',
ShardCount=1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment