Skip to content

Commit

Permalink
Release: 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Feb 19, 2022
1 parent 7eb4c31 commit 1010f5e
Show file tree
Hide file tree
Showing 175 changed files with 556 additions and 215 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
### Linux ###
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.2
1.3.3
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
data "local_file" "version" {
Expand Down
2 changes: 1 addition & 1 deletion examples/bitbucket+tf_enterprise/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "aft" {
Expand Down
2 changes: 1 addition & 1 deletion examples/codecommit+tf_oss/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "aft" {
Expand Down
2 changes: 1 addition & 1 deletion examples/github+tf_oss/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "aft" {
Expand Down
2 changes: 1 addition & 1 deletion examples/githubenterprise+tf_cloud/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "aft" {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#

echo "Executing Post-API Helpers"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#

echo "Executing Pre-API Helpers"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Auto generated providers.tf ##
## Updated on: {{ timestamp }} ##

provider "aws" {
region = "{{ provider_region }}"
assume_role {
role_arn = "{{ target_admin_role_arn }}"
}
default_tags {
tags = {
managed_by = "AFT"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Auto generated backend.tf ##
## Updated on: {{ timestamp }} ##

{% if tf_distribution_type == "oss" -%}
terraform {
required_version = ">= 0.15.1"
backend "s3" {
region = "{{ region }}"
bucket = "{{ bucket }}"
key = "{{ key }}"
dynamodb_table = "{{ dynamodb_table }}"
encrypt = "true"
kms_key_id = "{{ kms_key_id }}"
role_arn = "{{ aft_admin_role_arn }}"
}
}
{% else -%}
terraform {
backend "remote" {
organization = "{{ terraform_org_name }}"
workspaces {
name = "{{ terraform_workspace_name }}"
}
}
}
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "developer_customizations" {
source = "../../modules/development"
providers = {
aws = aws
}
}

module "security_customizations" {
source = "../../modules/security"
providers = {
aws = aws
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#

echo "Executing Post-API Helpers"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#

echo "Executing Pre-API Helpers"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Auto generated providers.tf ##
## Updated on: {{ timestamp }} ##

provider "aws" {
region = "{{ provider_region }}"
assume_role {
role_arn = "{{ target_admin_role_arn }}"
}
default_tags {
tags = {
managed_by = "AFT"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Auto generated backend.tf ##
## Updated on: {{ timestamp }} ##

{% if tf_distribution_type == "oss" -%}
terraform {
required_version = ">= 0.15.1"
backend "s3" {
region = "{{ region }}"
bucket = "{{ bucket }}"
key = "{{ key }}"
dynamodb_table = "{{ dynamodb_table }}"
encrypt = "true"
kms_key_id = "{{ kms_key_id }}"
role_arn = "{{ aft_admin_role_arn }}"
}
}
{% else -%}
terraform {
backend "remote" {
organization = "{{ terraform_org_name }}"
workspaces {
name = "{{ terraform_workspace_name }}"
}
}
}
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "prod_customizations" {
source = "../../modules/production"
providers = {
aws = aws
}
}

module "security_customizations" {
source = "../../modules/security"
providers = {
aws = aws
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

resource "aws_ssm_parameter" "example_parameter_dev" {
name = "/aft/example/parameter_dev"
type = "String"
value = "developer customizations"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
resource "aws_ssm_parameter" "example_parameter_prod" {
name = "/aft/example/parameter_prod"
type = "String"
value = "Production customizations"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
resource "aws_ssm_parameter" "example_parameter_security" {
name = "/aft/example/parameter_security"
type = "String"
value = "Security customizations"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#

echo "Executing Post-API Helpers"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#

echo "Executing Pre-API Helpers"
21 changes: 21 additions & 0 deletions examples/multiple-regions-customization/multiple-regions/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

resource "aws_ssm_parameter" "param-us-east-2" {
name = "/aft/example/region"
type = "String"
value = "us-east-2"

# Declare the custom provider using the alias
provider = aws.us_east_2
}

resource "aws_ssm_parameter" "param-us-west-1" {
name = "/aft/example/region"
type = "String"
value = "us-west-1"

# Declare the custom provider using the alias
provider = aws.us_west_1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## Auto generated providers.tf ##
## Updated on: {{ timestamp }} ##

provider "aws" {
region = "{{ provider_region }}"
assume_role {
role_arn = "{{ target_admin_role_arn }}"
}
default_tags {
tags = {
managed_by = "AFT"
}
}
}

# Custom provider for 'us-east-2' region
provider "aws" {
alias = "us_east_2"
region = "us-east-2"
assume_role {
role_arn = "{{ target_admin_role_arn }}"
}
default_tags {
tags = {
managed_by = "AFT"
}
}
}

# Custom provider for 'us-west-1' region
provider "aws" {
alias = "us_west_1"
region = "us-west-1"
assume_role {
role_arn = "{{ target_admin_role_arn }}"
}
default_tags {
tags = {
managed_by = "AFT"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Auto generated backend.tf ##
## Updated on: {{ timestamp }} ##

{% if tf_distribution_type == "oss" -%}
terraform {
required_version = ">= 0.15.1"
backend "s3" {
region = "{{ region }}"
bucket = "{{ bucket }}"
key = "{{ key }}"
dynamodb_table = "{{ dynamodb_table }}"
encrypt = "true"
kms_key_id = "{{ kms_key_id }}"
role_arn = "{{ aft_admin_role_arn }}"
}
}
{% else -%}
terraform {
backend "remote" {
organization = "{{ terraform_org_name }}"
workspaces {
name = "{{ terraform_workspace_name }}"
}
}
}
{% endif %}
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
locals {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "packaging" {
Expand Down
2 changes: 1 addition & 1 deletion modules/aft-account-provisioning-framework/data.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
data "aws_region" "aft_management" {}
Expand Down
2 changes: 1 addition & 1 deletion modules/aft-account-provisioning-framework/iam.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
######### invoke_aft_account_provisioning_framework #########
Expand Down
8 changes: 7 additions & 1 deletion modules/aft-account-provisioning-framework/lambda.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
### VALIDATE REQUEST FUNCTION
Expand All @@ -10,6 +10,7 @@ resource "aws_lambda_function" "validate_request" {
role = aws_iam_role.aft_lambda_aft_account_provisioning_framework_validate_request.arn
handler = "aft_account_provisioning_framework_validate_request.lambda_handler"
source_code_hash = var.provisioning_framework_archive_hash
memory_size = 1024
runtime = "python3.8"
timeout = 300
layers = [var.aft_common_layer_arn]
Expand All @@ -35,6 +36,7 @@ resource "aws_lambda_function" "get_account_info" {
role = aws_iam_role.aft_lambda_aft_account_provisioning_framework_get_account_info.arn
handler = "aft_account_provisioning_framework_get_account_info.lambda_handler"
source_code_hash = var.provisioning_framework_archive_hash
memory_size = 1024
runtime = "python3.8"
timeout = 300
layers = [var.aft_common_layer_arn]
Expand All @@ -59,6 +61,7 @@ resource "aws_lambda_function" "create_role" {
role = aws_iam_role.aft_lambda_aft_account_provisioning_framework_create_role.arn
handler = "aft_account_provisioning_framework_create_role.lambda_handler"
source_code_hash = var.provisioning_framework_archive_hash
memory_size = 1024
runtime = "python3.8"
timeout = 300
layers = [var.aft_common_layer_arn]
Expand All @@ -84,6 +87,7 @@ resource "aws_lambda_function" "tag_account" {
role = aws_iam_role.aft_lambda_aft_account_provisioning_framework_tag_account.arn
handler = "aft_account_provisioning_framework_tag_account.lambda_handler"
source_code_hash = var.provisioning_framework_archive_hash
memory_size = 1024
runtime = "python3.8"
timeout = 300
layers = [var.aft_common_layer_arn]
Expand All @@ -108,6 +112,7 @@ resource "aws_lambda_function" "persist_metadata" {
role = aws_iam_role.aft_lambda_aft_account_provisioning_framework_persist_metadata.arn
handler = "aft_account_provisioning_framework_persist_metadata.lambda_handler"
source_code_hash = var.provisioning_framework_archive_hash
memory_size = 1024
runtime = "python3.8"
timeout = 300
layers = [var.aft_common_layer_arn]
Expand All @@ -134,6 +139,7 @@ resource "aws_lambda_function" "account_metadata_ssm" {
role = aws_iam_role.aft_lambda_aft_account_provisioning_framework_persist_metadata.arn
handler = "aft_account_provisioning_framework_account_metadata_ssm.lambda_handler"
source_code_hash = var.provisioning_framework_archive_hash
memory_size = 1024
runtime = "python3.8"
timeout = 300
layers = [var.aft_common_layer_arn]
Expand Down
Loading

0 comments on commit 1010f5e

Please sign in to comment.