Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use terraform latest version #312

Merged
merged 3 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composite-action/terraform/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: v1.5.7
terraform_version: v1.6.1

- name: Terraform Init
run: terraform init
Expand Down
6 changes: 4 additions & 2 deletions terraform/daily_snapshot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ terraform {
region = "us-west-1"
# The S3 region is determined by the endpoint. fra1 = Frankfurt.
# This region does not have to be shared by the droplet.
endpoint = "https://fra1.digitaloceanspaces.com"

endpoints = {
s3 = "https://fra1.digitaloceanspaces.com"
}
# Credentially can be validated through the Security Token Service (STS).
# Unfortunately, DigitalOcean does not support STS so we have to skip the
# validation.
skip_credentials_validation = "true"
skip_requesting_account_id = "true"
}
}

Expand Down
11 changes: 7 additions & 4 deletions terraform/forest-calibnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ terraform {
required_version = ">= 1.2"

backend "s3" {
bucket = "forest-iac"
key = "forest-calibnet/terraform.tfstate"
region = "us-west-1"
endpoint = "fra1.digitaloceanspaces.com"
bucket = "forest-iac"
key = "forest-calibnet/terraform.tfstate"
region = "us-west-1"
endpoints = {
s3 = "https://fra1.digitaloceanspaces.com"
}
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
}
}

Expand Down
11 changes: 7 additions & 4 deletions terraform/forest-mainnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ terraform {
required_version = "~> 1.3"

backend "s3" {
bucket = "forest-iac"
key = "forest_mainnet/terraform.tfstate"
region = "us-west-1"
endpoint = "fra1.digitaloceanspaces.com"
bucket = "forest-iac"
key = "forest_mainnet/terraform.tfstate"
region = "us-west-1"
endpoints = {
s3 = "https://fra1.digitaloceanspaces.com"
}
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
}
}

Expand Down
11 changes: 7 additions & 4 deletions terraform/new-relic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ terraform {
}
}
backend "s3" {
bucket = "forest-iac"
key = "new_relic/terraform.tfstate"
region = "us-west-1"
endpoint = "fra1.digitaloceanspaces.com"
bucket = "forest-iac"
key = "new_relic/terraform.tfstate"
region = "us-west-1"
endpoints = {
s3 = "https://fra1.digitaloceanspaces.com"
}
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
}
}

Expand Down
5 changes: 4 additions & 1 deletion terraform/sync_check/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ terraform {
region = "us-west-1"
# The S3 region is determined by the endpoint. fra1 = Frankfurt.
# This region does not have to be shared by the droplet.
endpoint = "https://fra1.digitaloceanspaces.com"
endpoints = {
s3 = "fra1.digitaloceanspaces.com"
}

# Credentially can be validated through the Security Token Service (STS).
# Unfortunately, DigitalOcean does not support STS so we have to skip the
# validation.
skip_credentials_validation = "true"
skip_requesting_account_id = "true"
}
}

Expand Down
Loading