Skip to content

Commit

Permalink
changed backend s3 params
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Orlov committed Dec 16, 2024
1 parent e23e650 commit c444bf5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/opentofu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/tf-pre-bsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
10 changes: 7 additions & 3 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit c444bf5

Please sign in to comment.