-
Notifications
You must be signed in to change notification settings - Fork 0
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
flagscript
committed
Nov 6, 2023
1 parent
2c35d21
commit d7f0183
Showing
5 changed files
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resource "aws_iam_account_password_policy" "password_policy" { | ||
allow_users_to_change_password = true | ||
hard_expiry = false | ||
max_password_age = 90 | ||
minimum_password_length = 14 | ||
password_reuse_prevention = 24 | ||
require_lowercase_characters = true | ||
require_numbers = true | ||
require_symbols = true | ||
require_uppercase_characters = true | ||
} | ||
|
||
resource "aws_iam_account_alias" "alias" { | ||
account_alias = var.name | ||
} |
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,12 @@ | ||
locals { | ||
common_tags = { | ||
"flagscript:account-owner:owner" = var.client_id | ||
"flagscript:automation:environment" = "root" | ||
"flagscript:cost-allocation:application-id" = var.application_id | ||
"flagscript:cost-allocation:owner" = var.client_id | ||
"flagscript:data-owner:owner" = var.client_id | ||
"flagscript:operations:owner" = var.org_owner | ||
"github:module:repository" = "flagscript/terraform-aws-flagscript-organization" | ||
"terraform:module" = "terraform-aws-flagscript-organization//account-setup" | ||
} | ||
} |
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 @@ | ||
resource "aws_s3_account_public_access_block" "account_s3_public_access_block" { | ||
block_public_acls = true | ||
block_public_policy = true | ||
ignore_public_acls = true | ||
restrict_public_buckets = true | ||
} |
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,24 @@ | ||
# REQUIRED PARAMETERS | ||
# These parameters must be supplied when consuming this module. | ||
variable "application_id" { | ||
description = "Application Id" | ||
type = string | ||
} | ||
|
||
variable "client_id" { | ||
description = "The id for the client." | ||
type = string | ||
} | ||
|
||
variable "name" { | ||
description = "The name for the aws account." | ||
type = string | ||
} | ||
|
||
# OPTIONAL PARAMETERS | ||
# These parameters have reasonable defaults. | ||
variable "org_owner" { | ||
default = "flagscript" | ||
description = "Owner moniker for the flagscript organization." | ||
type = string | ||
} |
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,10 @@ | ||
# names required TF version | ||
terraform { | ||
required_version = ">= 1.6" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 5.0" | ||
} | ||
} | ||
} |