Skip to content

Commit 3d48864

Browse files
committed
fix: remove incorrect id ref. Use region
1 parent 0f18f4b commit 3d48864

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ Use [the awesome `gossm` project](https://github.com/gjbae1212/gossm).
7777
<!-- prettier-ignore-start -->
7878
<!-- markdownlint-disable -->
7979
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
80-
8180
## Requirements
8281

8382
| Name | Version |
@@ -121,6 +120,7 @@ Use [the awesome `gossm` project](https://github.com/gjbae1212/gossm).
121120
| [aws_ssm_document.session_logging](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_document) | resource |
122121
| [null_resource.validate_instance_type](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
123122
| [aws_ami.amazon_linux_2023](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |
123+
| [aws_ami.instance](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |
124124
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
125125
| [aws_iam_policy_document.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
126126
| [aws_iam_policy_document.session_logging](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module "logs_label" {
4444
}
4545

4646
locals {
47-
region = coalesce(var.region, data.aws_region.current.id)
47+
region = coalesce(var.region, data.aws_region.current.region)
4848
account_id = data.aws_caller_identity.current.account_id
4949

5050
session_logging_bucket_name = try(coalesce(var.session_logging_bucket_name, module.logs_label.id), "")

0 commit comments

Comments
 (0)