Skip to content

Commit

Permalink
terraform - formatting and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelberston committed Nov 26, 2024
1 parent 0a9f800 commit f23a467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions terraform/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module "eks" {
enable_irsa = true

# Add KMS key for secrets encryption
create_kms_key = false
create_kms_key = false # Manage in kms.tf file
cluster_encryption_config = {
provider_key_arn = aws_kms_key.eks.arn
resources = ["secrets"]
Expand Down Expand Up @@ -88,6 +88,6 @@ module "eks" {
}
}

# Configure cluster access
# Configure cluster access with IAM roles
manage_aws_auth_configmap = false
}
7 changes: 0 additions & 7 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
terraform {

required_providers {

aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}

tls = {
source = "hashicorp/tls"
version = "~> 3.0"
}

}

required_version = ">= 1.0.0"

backend "s3" {
bucket = "secure-auth-tf-state-bucket"
key = "state/terraform.tfstate" # Path in the bucket where the state file is stored
region = "us-west-1" # AWS region where the S3 bucket is located
dynamodb_table = "terraform-state-locks" # DynamoDB table for state locking
encrypt = true # Enable encryption for state file
}

}

provider "aws" {
Expand Down

0 comments on commit f23a467

Please sign in to comment.