How Do I Set A TTL Of Step Function Executions?

huangapple go评论66阅读模式
英文:

How Do I Set A TTL Of Step Function Executions?

问题

问题:

Step Function执行将被无限期保留。当我们使用Step Functions处理敏感客户信息时,这可能会导致GDPR问题。

我注意到我们可以组织日志级别,但这不会隐藏执行中传递的数据,也不提供设置执行的TTL的机会。

CDK代码:

this.stateMachine = new StateMachine(this, "stateMachine", { definition: definition, logs: { destination: logGroup, level: LogLevel.OFF } });

如何只存储Step Function执行特定一段时间?

英文:

Problem:

Step Function Executions are retained indefinetely. This causes a possible GDPR issue when we use Step Functions for handling sensitive customer information.

I've noticed we can organise the Log Levels, but this does not hide passed data in the execution, nor offer the opportunity to set a TTL on the Executions.

CDK Code:

this.stateMachine= new StateMachine(this, "stateMachine", { definition: definition, logs: { destination: logGroup, level: LogLevel.OFF } });

How can I only store Step Function Executions for a specific period of time?

答案1

得分: 1

Step Functions不会无限期保留执行。标准工作流程的执行历史将在执行完成后保留 90 天,然后将自动删除。默认情况下,快速工作流程不会存储此数据。

如果您使用可选配置来将此数据发射到 CloudWatch Logs(无论是标准还是快速工作流程),那么您可以在 CloudWatch logs 中管理生命周期。

链接:https://docs.aws.amazon.com/step-functions/latest/dg/limits-overview.html#service-limits-state-machine-executions

英文:

Step Functions does not retain execution indefinitely. It will retain Execution History for Standard Workflows for 90 days after an execution completes. It will then be automatically deleted. Express Workflows do not store this data by default.

If you use the optional configuration to emit this data CloudWatch Logs (for either Standard or Express) then you manage the lifecycle in CloudWatch logs.

https://docs.aws.amazon.com/step-functions/latest/dg/limits-overview.html#service-limits-state-machine-executions

huangapple
  • 本文由 发表于 2023年2月16日 18:07:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75470667.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定