diff --git a/s3-static-website/provider.tf b/s3-static-website/provider.tf index 2a838ec..5231ec8 100644 --- a/s3-static-website/provider.tf +++ b/s3-static-website/provider.tf @@ -2,34 +2,15 @@ provider "aws" { access_key = "test" secret_key = "test" region = "us-east-1" - s3_force_path_style = false + + # only required for non virtual hosted-style endpoint use case. + # https://registry.terraform.io/providers/hashicorp/aws/latest/docs#s3_force_path_style + s3_use_path_style = true skip_credentials_validation = true skip_metadata_api_check = true - skip_requesting_account_id = true endpoints { - apigateway = "http://localhost:4566" - apigatewayv2 = "http://localhost:4566" - cloudformation = "http://localhost:4566" - cloudwatch = "http://localhost:4566" - dynamodb = "http://localhost:4566" - ec2 = "http://localhost:4566" - es = "http://localhost:4566" - elasticache = "http://localhost:4566" - firehose = "http://localhost:4566" - iam = "http://localhost:4566" - kinesis = "http://localhost:4566" - lambda = "http://localhost:4566" - rds = "http://localhost:4566" - redshift = "http://localhost:4566" - route53 = "http://localhost:4566" s3 = "http://s3.localhost.localstack.cloud:4566" - secretsmanager = "http://localhost:4566" - ses = "http://localhost:4566" - sns = "http://localhost:4566" - sqs = "http://localhost:4566" - ssm = "http://localhost:4566" - stepfunctions = "http://localhost:4566" - sts = "http://localhost:4566" + s3control = "http://localhost.localstack.cloud:4566" } }