Preparing the environment
- Clone the repository using
git
git clone the-repository/project
- Change to the project directory
- Init the Terraform project
- Validate the configurations files
- Lint the project
Installation guide for tflint -> https://github.com/terraform-linters/tflint
- Validate for security best practices
Installation guide for tfsec -> https://aquasecurity.github.io/tfsec/v1.28.1/guides/installation/
- Give some format (just in case)
Name |
Version |
aws |
~> 5.3.0 |
No modules.
Name |
Description |
Type |
Default |
Required |
aws_region |
AWS region where the EC2 instance will be deployed |
string |
"us-east-1" |
no |
deletion_window_in_days |
Deletion window in days |
number |
30 |
no |
enable_key_rotation |
Enable key rotation |
bool |
true |
no |
multiregion |
Enable multi-region key |
bool |
false |
no |
project_name |
Name of the project |
string |
"my-project" |
no |
services |
Services to encrypt using the keys |
list(string) |
[ "S3", "RDS", "MSK", "CloudWatch", "EBS" ] |
no |
tags |
Tags to apply to AWS resources |
map(string) |
{ "Environment": "Development", "Owner": "Frankin Garcia" } |
no |
Name |
Description |
kms_key_arns |
ARNs of the created KMS keys with service names as a map |