Repository navigation
Commit 0bc9e82
authored
Delete the CloudWatch log group left by example_mwaa_serverless (#76810)
MWAA Serverless creates a log group named
`/aws/mwaa-serverless/<workflow id>/` for every workflow that does not
bring its own, and `DeleteWorkflow` leaves it in place. The
`example_mwaa_serverless` system test never removed it, so each run
leaked one log group into the test account.
The workflow ID ends in a service-generated suffix, so the log group
name is derived at run time from the ARN returned by `create_workflow`.
Teardown copies the workflow logs into the task log and then deletes
the group, whether or not the run passed, as `example_dms` does.
The role running the test needs `logs:FilterLogEvents` and
`logs:DeleteLogGroup` on `log-group:/aws/mwaa-serverless/*`.1 parent c03cb84 commit 0bc9e82
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| |||
210 | 226 | | |
211 | 227 | | |
212 | 228 | | |
| 229 | + | |
213 | 230 | | |
214 | 231 | | |
215 | 232 | | |
| |||
0 commit comments