Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 4.84 KB

README-Terraform-Infra-TFState.md

File metadata and controls

61 lines (50 loc) · 4.84 KB

Requirements

Name Version
terraform >= 1.0.9
aws >= 3.63.0, < 4.0
random >= 2.0

Providers

Name Version
aws >= 3.63.0, < 4.0
random >= 2.0

Modules

Name Source Version
dynamodb ../../../../../modules/providers/aws/officials/terraform-aws-dynamodb-table n/a
s3_bucket ../../../../../modules/providers/aws/officials/terraform-aws-s3-bucket n/a

Resources

Name Type
aws_iam_role.this resource
random_pet.this resource
aws_canonical_user_id.current data source
aws_cloudfront_log_delivery_canonical_user_id.cloudfront data source
aws_iam_policy_document.bucket_policy data source
aws_kms_key.cmk_key data source

Inputs

Name Description Type Default Required
aws_region AWS Region Target Deployment string "ap-southeast-1" no
department Department Owner string "DEVOPS" no
env Workspace Environment Selection map(string)
{
"lab": "lab",
"prod": "prod",
"staging": "staging"
}
no
environment Target Environment (tags) map(string)
{
"lab": "RND",
"prod": "PROD",
"staging": "STG"
}
no
kms_env KMS Key Environment map(string)
{
"lab": "RnD",
"prod": "Production",
"staging": "Staging"
}
no
kms_key KMS Key References map(string)
{
"lab": "arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/CMK_KEY_HASH",
"prod": "arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/CMK_KEY_HASH",
"staging": "arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/CMK_KEY_HASH"
}
no
tfstate_bucket Name of bucket to store tfstate string "devopscorner-terraform-remote-state" no
tfstate_dynamodb_table Name of dynamodb table to store tfstate string "devopscorner-terraform-state-lock" no
tfstate_encrypt Name of bucket to store tfstate bool true no
tfstate_path Path .tfstate in Bucket string "tfstate/terraform.tfstate" no

Outputs

Name Description
dynamodb_table_arn ARN of the DynamoDB table
dynamodb_table_id ID of the DynamoDB table
dynamodb_table_stream_arn The ARN of the Table Stream. Only available when var.stream_enabled is true
dynamodb_table_stream_label A timestamp, in ISO 8601 format of the Table Stream. Only available when var.stream_enabled is true
s3_bucket_arn The ARN of the bucket. Will be of format arn:aws:s3:::bucketname.
s3_bucket_id The name of the bucket.
s3_bucket_region The AWS region this bucket resides in.