diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml index 3479126..d537e4f 100644 --- a/.github/workflows/modules.yml +++ b/.github/workflows/modules.yml @@ -63,9 +63,6 @@ jobs: terraform init -reconfigure -backend-config="bucket=github-terraform-state" -backend-config="key=github-infra-examples.tfstate" - -backend-config="region=ru-1" - -backend-config="skip_region_validation=true" - -backend-config="skip_credentials_validation=true" -backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" -backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" diff --git a/.github/workflows/opentofu.yml b/.github/workflows/opentofu.yml index 41e3691..9d8b23e 100644 --- a/.github/workflows/opentofu.yml +++ b/.github/workflows/opentofu.yml @@ -42,9 +42,6 @@ jobs: tofu init -reconfigure -backend-config="bucket=github-terraform-state" -backend-config="key=github-infra-examples.tfstate" - -backend-config="region=ru-1" - -backend-config="skip_region_validation=true" - -backend-config="skip_credentials_validation=true" -backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" -backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" diff --git a/.github/workflows/tf-pre-bsl.yml b/.github/workflows/tf-pre-bsl.yml index 436c36c..35c91a3 100644 --- a/.github/workflows/tf-pre-bsl.yml +++ b/.github/workflows/tf-pre-bsl.yml @@ -63,9 +63,6 @@ jobs: terraform init -reconfigure -backend-config="bucket=github-terraform-state" -backend-config="key=github-infra-examples.tfstate" - -backend-config="region=ru-1" - -backend-config="skip_region_validation=true" - -backend-config="skip_credentials_validation=true" -backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" -backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" diff --git a/versions.tf b/versions.tf index acc314f..9e9bda5 100644 --- a/versions.tf +++ b/versions.tf @@ -10,8 +10,12 @@ terraform { } } backend "s3" { - endpoints = { - s3 = "s3.ru-1.storage.selcloud.ru" - } + endpoints = { s3 = "https://s3.ru-1.storage.selcloud.ru" } + region = "ru-1" + skip_region_validation = true + skip_credentials_validation = true + skip_requesting_account_id = true + skip_s3_checksum = true + skip_metadata_api_check = true } }