Using the CloudFormation template

You can create a CloudFormation template file with the following Resource and Outputs sections to create a simple KDS:

Resources:
KinesisStream:
Type: AWS::Kinesis::Stream
Properties:
Name: my-first-kinesis-stream
RetentionPeriodHours: 24
ShardCount: 1

Outputs:
KinesisStreamId:
Value: !Ref KinesisStream
Export:
Name: "KinesisStreamId"
KinesisStreamArn:
Value: !GetAtt KinesisStream.Arn
Export:
Name: "KinesisStreamArn"

You may also add a template version and description to the top of the template file and then execute the stack using the aws cloudformation create-stack command. The complete commands and the template are available with the code files.

If successful, the describe-stacks subcommand should return with an Outputs section, as shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.75.165