Skip to content

Commit

Permalink
Name change with data lookup (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
ep-93 authored Nov 14, 2024
1 parent 82ff5f4 commit fb5be07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ resource "aws_vpc_endpoint" "ssm_interfaces" {
resource "aws_vpc_endpoint" "ssm_s3" {

vpc_id = aws_vpc.vpc.id
service_name = "com.amazonaws.eu-west-2.s3"
service_name = "com.amazonaws.${data.aws_region.current.name}.s3"
vpc_endpoint_type = "Gateway"

route_table_ids = [
Expand All @@ -438,7 +438,7 @@ resource "aws_vpc_endpoint" "ssm_s3" {
tags = merge(
var.tags_common,
{
Name = "${var.tags_prefix}-com.amazonaws.eu-west-2.s3"
Name = "${var.tags_prefix}-com.amazonaws.${data.aws_region.current.name}.s3"
}
)
}

0 comments on commit fb5be07

Please sign in to comment.