From d6ea36b2e23ff298fb07af61d7c6436c91ddb772 Mon Sep 17 00:00:00 2001 From: Ashutosh Date: Mon, 13 May 2024 22:44:13 +0545 Subject: [PATCH] update --- .../modules/terraform-aws-cloudfront-s3-website/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/IaC/terraform/modules/terraform-aws-cloudfront-s3-website/main.tf b/.github/IaC/terraform/modules/terraform-aws-cloudfront-s3-website/main.tf index 37f7a234..52ea1cab 100644 --- a/.github/IaC/terraform/modules/terraform-aws-cloudfront-s3-website/main.tf +++ b/.github/IaC/terraform/modules/terraform-aws-cloudfront-s3-website/main.tf @@ -1,7 +1,7 @@ terraform { required_providers { aws = { - source = "hashicorp/aws" + source = "hashicorp/aws" version = "5.46.0" } } @@ -29,7 +29,7 @@ resource "random_string" "random" { # Creating an S3 Bucket resource "aws_s3_bucket" "s3_bucket" { - bucket = "mernfrontend-${random_string.random.result}" + bucket = "mern_fe${random_string.random.result}" force_destroy = true } @@ -182,10 +182,10 @@ resource "aws_cloudfront_distribution" "s3_distribution" { restrictions { geo_restriction { restriction_type = var.cloudfront_geo_restriction_restriction_type - locations = [] + locations = [] } } - + viewer_certificate { cloudfront_default_certificate = true }