diff --git a/.github/workflows/terraform-docs.yml b/.github/workflows/terraform-docs.yml
index ddb1aef..189190f 100644
--- a/.github/workflows/terraform-docs.yml
+++ b/.github/workflows/terraform-docs.yml
@@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- - name: Check out the codebase
- uses: actions/checkout@v5
- with:
- ref: ${{ github.event.pull_request.head.ref }}
+ - name: Check out the codebase
+ uses: actions/checkout@v6
+ with:
+ ref: ${{ github.event.pull_request.head.ref }}
- - name: Render terraform docs inside the README.md and push changes back to PR branch
- uses: terraform-docs/gh-actions@v1.4.1
- with:
- working-dir: .
- output-file: README.md
- output-method: inject
- git-push: "true"
+ - name: Render terraform docs inside the README.md and push changes back to PR branch
+ uses: terraform-docs/gh-actions@v1.4.1
+ with:
+ working-dir: .
+ output-file: README.md
+ output-method: inject
+ git-push: "true"
diff --git a/.tflint.hcl b/.tflint.hcl
index 82d3bb6..f6cc624 100644
--- a/.tflint.hcl
+++ b/.tflint.hcl
@@ -1,9 +1,5 @@
plugin "aws" {
enabled = true
- version = "0.30.0"
+ version = "0.45.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
-
-config {
- module = true
-}
diff --git a/README.md b/README.md
index 2140306..b3395b4 100644
--- a/README.md
+++ b/README.md
@@ -10,14 +10,14 @@ Config parameters are minimal. This module is designed for the author's use but
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.5 |
-| [aws](#requirement\_aws) | >= 5.46.0 |
+| [aws](#requirement\_aws) | >= 6.5.0 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.46.0 |
-| [aws.us-east-1](#provider\_aws.us-east-1) | >= 5.46.0 |
+| [aws](#provider\_aws) | >= 6.5.0 |
+| [aws.us-east-1](#provider\_aws.us-east-1) | >= 6.5.0 |
## Modules
@@ -51,11 +51,13 @@ No modules.
|------|-------------|------|---------|:--------:|
| [bucket\_name](#input\_bucket\_name) | S3 bucket name | `string` | n/a | yes |
| [bucket\_name\_cloudfront\_logs](#input\_bucket\_name\_cloudfront\_logs) | S3 bucket name for CloudFront logs | `string` | n/a | yes |
-| [cloudfront\_logs\_expiration\_days](#input\_cloudfront\_logs\_expiration\_days) | days to keep CloudFront logs | `number` | n/a | yes |
+| [cloudfront\_logs\_expiration\_days](#input\_cloudfront\_logs\_expiration\_days) | days to keep CloudFront logs | `number` | `90` | no |
| [cloudfront\_logs\_prefix](#input\_cloudfront\_logs\_prefix) | S3 prefix for CloudFront logs | `string` | n/a | yes |
| [domain\_name](#input\_domain\_name) | Domain name of the site / existing Route53 hosted zone name | `string` | n/a | yes |
## Outputs
-No outputs.
+| Name | Description |
+|------|-------------|
+| [cloudfront\_distribution\_id](#output\_cloudfront\_distribution\_id) | n/a |
\ No newline at end of file
diff --git a/outputs.tf b/outputs.tf
index e69de29..b31cbe2 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -0,0 +1,3 @@
+output "cloudfront_distribution_id" {
+ value = aws_cloudfront_distribution.site.id
+}
diff --git a/renovate.json b/renovate.json
new file mode 100644
index 0000000..39a2b6e
--- /dev/null
+++ b/renovate.json
@@ -0,0 +1,6 @@
+{
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
+ "extends": [
+ "config:base"
+ ]
+}
diff --git a/terraform.tf b/terraform.tf
index 7c9c2cb..1c6481e 100644
--- a/terraform.tf
+++ b/terraform.tf
@@ -3,8 +3,8 @@ terraform {
required_providers {
aws = {
- source = "hashicorp/aws"
- version = ">= 5.46.0"
+ source = "hashicorp/aws"
+ version = ">= 6.5.0"
configuration_aliases = [aws.us-east-1]
}
}
diff --git a/variables.tf b/variables.tf
index 50df3b7..bb17fc0 100644
--- a/variables.tf
+++ b/variables.tf
@@ -21,4 +21,5 @@ variable "cloudfront_logs_prefix" {
variable "cloudfront_logs_expiration_days" {
description = "days to keep CloudFront logs"
type = number
+ default = 90
}