Skip to content

Commit

Permalink
update default cron and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
farhanangullia committed Jul 13, 2023
1 parent 338349b commit 3545365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/mwaa/environment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF

resource "aws_iam_role_policy" "vpc_flow_log_role_policy" {
name_prefix = "VPCFlowLogRolePolicy"
role = aws_iam_role.vpc_flow_log_role.id
role = aws_iam_role.vpc_flow_log_role.id

policy = <<EOF
{
Expand Down Expand Up @@ -493,7 +493,9 @@ resource "aws_mwaa_environment" "this" {
aws_subnet.mwaa_private_subnets,
aws_subnet.mwaa_public_subnets,
aws_route_table_association.prt_associations,
aws_route_table_association.pubrt_associations
aws_route_table_association.pubrt_associations,
aws_route.pub_route_igw,
aws_route.prv_route_nat,
]
}

4 changes: 2 additions & 2 deletions examples/mwaa/switch/config.auto.tfvars
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source_location = "https://github.com/aws-samples/aws-terraform-scheduled-switch.git"
kill_resources_schedule = "cron(0 1/3 * * ? *)"
revive_resources_schedule = "cron(0 1/2 * * ? *)"
kill_resources_schedule = "cron(0 1/1 * * ? *)"
revive_resources_schedule = "cron(45 1/1 * * ? *)"
init_command = "terraform -chdir=examples/mwaa/environment init -backend-config=\"bucket=REPLACE_ME\" -backend-config=\"key=REPLACE_ME\" -backend-config=\"region=REPLACE_ME\" -input=false" # Replace all fields of REPLACE_ME with your s3 backend configuration values that is used to deploy the MWAA environment.
kill_command = "terraform -chdir=examples/mwaa/environment apply -input=false -target=aws_mwaa_environment.this -var enabled=false -auto-approve"
revive_command = "terraform -chdir=examples/mwaa/environment apply -input=false -target=aws_mwaa_environment.this -var enabled=true -auto-approve"
Expand Down

0 comments on commit 3545365

Please sign in to comment.