Lab 18: Create Kinesis Stream Using Terraform
The Nautilus DevOps team needs to create an AWS Kinesis data stream for real-time data processing. This stream will be used to ingest and process large volumes of streaming data, which will then be consumed by various applications for analytics and real-time decision-making.
-
The stream should be named
xfusion-stream. -
Use
Terraformto create this Kinesis stream.The Terraform working directory is
/home/bob/terraform. Create themain.tffile (do not create a different.tffile) to accomplish this task.Note:- Right-click under the
EXPLORERsection inVS Codeand selectOpen in Integrated Terminalto launch the terminal. - Before submitting the task, ensure that
terraform planreturnsNo changes. Your infrastructure matches the configuration.
- Right-click under the
Create main.tf
resource "aws_kinesis_stream" "xfusion-stream" {
name = "xfusion-stream"
stream_mode_details {
stream_mode = "ON_DEMAND"
}
}
terraform init
terraform plan -out kke.plan && terraform apply kke.plan
# or apply forcefully without creating plan and applying it
terraform apply -auto-approve