Skip to content

Commit

Permalink
fix: improve terraform example code
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwint committed Jan 14, 2024
1 parent 93bf92a commit f1d2e3c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ The Terraform configuration can also be included in your own project as a
module:

```terraform
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
provider "aws" {
region = "eu-west-1"
}
Expand Down
7 changes: 7 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ variable "use_wildcard_certificate" {
description = "Use a wildcard certificate (*.example.com)"
}

variable "enable_dynamodb_locking" {
type = bool
default = false
description = "Create a DynamoDB table for locking"
}

variable "enable_basic_auth" {
type = bool
default = false
Expand All @@ -49,6 +55,7 @@ module "s3pypi" {
bucket = var.bucket
domain = var.domain
use_wildcard_certificate = var.use_wildcard_certificate
enable_dynamodb_locking = var.enable_dynamodb_locking
enable_basic_auth = var.enable_basic_auth

providers = {
Expand Down

0 comments on commit f1d2e3c

Please sign in to comment.