Skip to content

Commit

Permalink
chore: use terraform latest version
Browse files Browse the repository at this point in the history
Signed-off-by: samuelarogbonlo <[email protected]>
  • Loading branch information
samuelarogbonlo committed Oct 11, 2023
1 parent 1048635 commit a7f76a4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 17 deletions.
2 changes: 0 additions & 2 deletions composite-action/terraform/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ runs:
steps:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: v1.5.7

- 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 = "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 = "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 = "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 = "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

0 comments on commit a7f76a4

Please sign in to comment.