generated from aws-ia/.github
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AWS
committed
Feb 19, 2022
1 parent
7eb4c31
commit 1010f5e
Showing
175 changed files
with
556 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.2 | ||
1.3.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...multiple-account-customizations/account-customization-dev/api_helpers/post-api-helpers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
6 changes: 6 additions & 0 deletions
6
.../multiple-account-customizations/account-customization-dev/api_helpers/pre-api-helpers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
14 changes: 14 additions & 0 deletions
14
...s/multiple-account-customizations/account-customization-dev/terraform/aft-providers.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
examples/multiple-account-customizations/account-customization-dev/terraform/backend.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
16 changes: 16 additions & 0 deletions
16
examples/multiple-account-customizations/account-customization-dev/terraform/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ultiple-account-customizations/account-customization-prod/api_helpers/post-api-helpers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
6 changes: 6 additions & 0 deletions
6
...multiple-account-customizations/account-customization-prod/api_helpers/pre-api-helpers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
14 changes: 14 additions & 0 deletions
14
.../multiple-account-customizations/account-customization-prod/terraform/aft-providers.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
examples/multiple-account-customizations/account-customization-prod/terraform/backend.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
16 changes: 16 additions & 0 deletions
16
examples/multiple-account-customizations/account-customization-prod/terraform/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
examples/multiple-account-customizations/modules/development/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
8 changes: 8 additions & 0 deletions
8
examples/multiple-account-customizations/modules/production/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
8 changes: 8 additions & 0 deletions
8
examples/multiple-account-customizations/modules/security/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
6 changes: 6 additions & 0 deletions
6
examples/multiple-regions-customization/multiple-regions/api_helpers/post-api-helpers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
6 changes: 6 additions & 0 deletions
6
examples/multiple-regions-customization/multiple-regions/api_helpers/pre-api-helpers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Empty file.
21 changes: 21 additions & 0 deletions
21
examples/multiple-regions-customization/multiple-regions/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
42 changes: 42 additions & 0 deletions
42
examples/multiple-regions-customization/multiple-regions/terraform/aft-providers.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
examples/multiple-regions-customization/multiple-regions/terraform/backend.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.