fix(core): Terraform code adaptation for docs upload
[ci-management.git] / jjb / scripts / terraform_s3_docs_ship.sh
index 5989e3e..d70fa6c 100644 (file)
@@ -21,7 +21,7 @@ cat >"/w/workspace/main.tf" <<'END_OF_TERRAFORM_SCRIPT'
 provider "aws" {
   region                      = "us-east-1"
   profile                     = "default"
-  s3_force_path_style         = false
+  s3_use_path_style           = false
   skip_credentials_validation = true
   skip_metadata_api_check     = true
   skip_requesting_account_id  = true
@@ -65,7 +65,6 @@ variable "file_match_pattern" {
 variable "bucket" {
   description = "S3 bucket name"
   type        = string
-  default     = "fdio-docs-s3-cloudfront-index"
 }
 
 variable "bucket_path" {
@@ -73,7 +72,7 @@ variable "bucket_path" {
   type        = string
 }
 
-resource "aws_s3_bucket_object" "object" {
+resource "aws_s3_object" "object" {
   for_each = fileset(var.workspace_dir, var.file_match_pattern)
 
   bucket = var.bucket