回答

1

這不可能通過CF來完成。 Kinesis流由CreateStream API調用創建,而更改保留期需要單獨調用,其中兩個實際上是:IncreaseStreamRetentionPeriod和DecreaseStreamRetentionPeriod。只有在創建流後才能調用它們。

+0

如果您要將Infra作爲代碼構建,可以使用HashiCorp的terraform輕鬆設置https://www.terraform.io/docs/providers/aws/r/kinesis_stream.html#retention_period –