Skip to content

Commit 193febd

Browse files
committed
fix deprecation waring
1 parent c8a53af commit 193febd

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

examples/default/main.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,6 @@ module "runners" {
142142
# enable CMK instead of aws managed key for encryptions
143143
# kms_key_arn = aws_kms_key.github.arn
144144

145-
# pool_runner_owner = "philips-test-runners"
146-
# pool_config = [{
147-
# size = 1
148-
# schedule_expression = "cron(0/3 14 * * ? *)" # every 3 minutes between 14:00 and 15:00
149-
# schedule_expression_timezone = "Europe/Amsterdam"
150-
151-
# }]
152-
153145
}
154146

155147
module "webhook_github_app" {

modules/runners/pool/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ resource "aws_iam_role" "scheduler" {
189189
permissions_boundary = var.config.role_permissions_boundary
190190

191191
assume_role_policy = data.aws_iam_policy_document.scheduler_assume.json
192-
193-
inline_policy {
194-
name = "terraform"
195-
policy = data.aws_iam_policy_document.scheduler.json
196-
}
197-
198192
tags = var.config.tags
199193
}
200194

195+
resource "aws_iam_role_policy" "scheduler" {
196+
name = "terraform"
197+
role = aws_iam_role.scheduler.name
198+
policy = data.aws_iam_policy_document.scheduler.json
199+
}
200+
201201
resource "aws_scheduler_schedule" "pool" {
202202
for_each = { for i, v in var.config.pool : i => v }
203203

0 commit comments

Comments
 (0)