Skip to content

Commit 22f754a

Browse files
author
AWS
committed
Release: 1.20.0
1 parent 8dec0e2 commit 22f754a

32 files changed

Lines changed: 156 additions & 118 deletions

File tree

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @ouyanguf @wiltangg @aviwshah @dashbat @dhingraa-github @sk-at-amazon @aspiratr-aws @yashl
1+
* @ouyanguf @wiltangg @aviwshah @dashbat @dhingraa-github @stumins @vmale-aws @yashl @seannnnn-aws @tinpha @sungkkim

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ When you enable the HCP Terraform or Terraform Enterprise OIDC integration (`ter
8282

8383
| Name | Version |
8484
|------|---------|
85-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.2.0, < 2.0.0 |
85+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.6.1, < 2.0.0 |
8686
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.0.0, < 7.0.0 |
8787

8888
## Providers
@@ -146,6 +146,7 @@ When you enable the HCP Terraform or Terraform Enterprise OIDC integration (`ter
146146
| <a name="input_aft_vpc_public_subnet_02_cidr"></a> [aft\_vpc\_public\_subnet\_02\_cidr](#input\_aft\_vpc\_public\_subnet\_02\_cidr) | CIDR Block to allocate to the Public Subnet 02 | `string` | `"192.168.2.128/25"` | no |
147147
| <a name="input_audit_account_id"></a> [audit\_account\_id](#input\_audit\_account\_id) | Audit Account Id | `string` | n/a | yes |
148148
| <a name="input_backup_recovery_point_retention"></a> [backup\_recovery\_point\_retention](#input\_backup\_recovery\_point\_retention) | Number of days to keep backup recovery points in AFT DynamoDB tables. Default = Never Expire | `number` | `null` | no |
149+
| <a name="input_backup_schedule"></a> [backup\_schedule](#input\_backup\_schedule) | Cron expression for the DynamoDB backup schedule. Default = hourly | `string` | `"cron(0 * * * ? *)"` | no |
149150
| <a name="input_cloudwatch_log_group_enable_cmk_encryption"></a> [cloudwatch\_log\_group\_enable\_cmk\_encryption](#input\_cloudwatch\_log\_group\_enable\_cmk\_encryption) | Flag toggling CloudWatch Log Groups encryption by using the AFT customer managed key stored in KMS. Additional charges apply. Otherwise, logs will use CloudWatch managed server-side encryption. | `bool` | `false` | no |
150151
| <a name="input_cloudwatch_log_group_retention"></a> [cloudwatch\_log\_group\_retention](#input\_cloudwatch\_log\_group\_retention) | Amount of days to keep CloudWatch Log Groups for Lambda functions. 0 = Never Expire | `string` | `"0"` | no |
151152
| <a name="input_concurrent_account_factory_actions"></a> [concurrent\_account\_factory\_actions](#input\_concurrent\_account\_factory\_actions) | Maximum number of accounts that can be provisioned in parallel. | `number` | `5` | no |
@@ -170,7 +171,7 @@ When you enable the HCP Terraform or Terraform Enterprise OIDC integration (`ter
170171
| <a name="input_terraform_org_name"></a> [terraform\_org\_name](#input\_terraform\_org\_name) | Organization name for Terraform Cloud or Enterprise | `string` | `"null"` | no |
171172
| <a name="input_terraform_project_name"></a> [terraform\_project\_name](#input\_terraform\_project\_name) | Project name for Terraform Cloud or Enterprise - project must exist before deployment | `string` | `"Default Project"` | no |
172173
| <a name="input_terraform_token"></a> [terraform\_token](#input\_terraform\_token) | Terraform token for Cloud or Enterprise | `string` | `"null"` | no |
173-
| <a name="input_terraform_version"></a> [terraform\_version](#input\_terraform\_version) | Terraform version being used for AFT | `string` | `"1.6.0"` | no |
174+
| <a name="input_terraform_version"></a> [terraform\_version](#input\_terraform\_version) | Terraform version being used for AFT | `string` | `"1.6.1"` | no |
174175
| <a name="input_tf_backend_secondary_region"></a> [tf\_backend\_secondary\_region](#input\_tf\_backend\_secondary\_region) | AFT creates a backend for state tracking for its own state as well as OSS cases. The backend's primary region is the same as the AFT region, but this defines the secondary region to replicate to. | `string` | `""` | no |
175176
| <a name="input_vcs_provider"></a> [vcs\_provider](#input\_vcs\_provider) | Customer VCS Provider - valid inputs are codecommit, bitbucket, github, githubenterprise, gitlab, or gitLab self-managed | `string` | `"codecommit"` | no |
176177

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.19.0
1+
1.20.0

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module "aft_account_request_framework" {
5959
request_framework_archive_hash = module.packaging.request_framework_archive_hash
6060
lambda_runtime_python_version = local.lambda_runtime_python_version
6161
backup_recovery_point_retention = var.backup_recovery_point_retention
62+
backup_schedule = var.backup_schedule
6263
aft_customer_vpc_id = var.aft_customer_vpc_id
6364
aft_customer_private_subnets = var.aft_customer_private_subnets
6465
sns_topic_enable_cmk_encryption = var.sns_topic_enable_cmk_encryption

modules/aft-account-provisioning-framework/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
terraform {
5-
required_version = ">= 1.2.0, < 2.0.0"
5+
required_version = ">= 1.6.1, < 2.0.0"
66

77
required_providers {
88
aws = {

modules/aft-account-request-framework/backup.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "aws_backup_plan" "aft_controltower_backup_plan" {
1010
rule {
1111
rule_name = "aft_controltower_backup_rule"
1212
target_vault_name = aws_backup_vault.aft_controltower_backup_vault.name
13-
schedule = "cron(0 * * * ? *)"
13+
schedule = var.backup_schedule
1414

1515
dynamic "lifecycle" {
1616
for_each = var.backup_recovery_point_retention != null ? [1] : []

modules/aft-account-request-framework/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ variable "backup_recovery_point_retention" {
7070
type = number
7171
}
7272

73+
variable "backup_schedule" {
74+
type = string
75+
}
76+
7377
variable "aft_enable_vpc" {
7478
type = bool
7579
}

modules/aft-account-request-framework/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
terraform {
5-
required_version = ">= 1.2.0, < 2.0.0"
5+
required_version = ">= 1.6.1, < 2.0.0"
66

77
required_providers {
88
aws = {
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
#
4-
data "archive_file" "provisioning_framework" {
4+
resource "archive_file" "provisioning_framework" {
55
type = "zip"
66
source_dir = "${path.module}/../../src/aft_lambda/aft_account_provisioning_framework"
77
output_path = "${path.module}/../../src/aft_lambda/aft_account_provisioning_framework.zip"
88
}
99

10-
data "archive_file" "request_framework" {
10+
resource "archive_file" "request_framework" {
1111
type = "zip"
1212
source_dir = "${path.module}/../../src/aft_lambda/aft_account_request_framework"
1313
output_path = "${path.module}/../../src/aft_lambda/aft_account_request_framework.zip"
1414
}
15-
data "archive_file" "customizations" {
15+
16+
resource "archive_file" "customizations" {
1617
type = "zip"
1718
source_dir = "${path.module}/../../src/aft_lambda/aft_customizations"
1819
output_path = "${path.module}/../../src/aft_lambda/aft_customizations.zip"
1920
}
2021

21-
data "archive_file" "feature_options" {
22+
resource "archive_file" "feature_options" {
2223
type = "zip"
2324
source_dir = "${path.module}/../../src/aft_lambda/aft_feature_options"
2425
output_path = "${path.module}/../../src/aft_lambda/aft_feature_options.zip"
2526
}
2627

27-
data "archive_file" "builder" {
28+
resource "archive_file" "builder" {
2829
type = "zip"
2930
source_dir = "${path.module}/../../src/aft_lambda/aft_builder"
3031
output_path = "${path.module}/../../src/aft_lambda/aft_builder.zip"

modules/aft-archives/outputs.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,41 @@
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
output "provisioning_framework_archive_path" {
5-
value = data.archive_file.provisioning_framework.output_path
5+
value = archive_file.provisioning_framework.output_path
66
}
77

88
output "provisioning_framework_archive_hash" {
9-
value = data.archive_file.provisioning_framework.output_base64sha256
9+
value = archive_file.provisioning_framework.output_base64sha256
1010
}
1111

1212
output "request_framework_archive_path" {
13-
value = data.archive_file.request_framework.output_path
13+
value = archive_file.request_framework.output_path
1414
}
1515

1616
output "request_framework_archive_hash" {
17-
value = data.archive_file.request_framework.output_base64sha256
17+
value = archive_file.request_framework.output_base64sha256
1818
}
1919

2020
output "customizations_archive_path" {
21-
value = data.archive_file.customizations.output_path
21+
value = archive_file.customizations.output_path
2222
}
2323

2424
output "customizations_archive_hash" {
25-
value = data.archive_file.customizations.output_base64sha256
25+
value = archive_file.customizations.output_base64sha256
2626
}
2727

2828
output "feature_options_archive_path" {
29-
value = data.archive_file.feature_options.output_path
29+
value = archive_file.feature_options.output_path
3030
}
3131

3232
output "feature_options_archive_hash" {
33-
value = data.archive_file.feature_options.output_base64sha256
33+
value = archive_file.feature_options.output_base64sha256
3434
}
3535

3636
output "builder_archive_path" {
37-
value = data.archive_file.builder.output_path
37+
value = archive_file.builder.output_path
3838
}
3939

4040
output "builder_archive_hash" {
41-
value = data.archive_file.builder.output_base64sha256
41+
value = archive_file.builder.output_base64sha256
4242
}

0 commit comments

Comments
 (0)