Remove the profile attribute entirely

This was what was apparently breaking our Terraform actions.  I traced this to an undocumented breaking change with the AWS provider; more details can be seen here: https://discuss.hashicorp.com/t/error-error-configuring-terraform-aws-provider-failed-to-get-shared-config-profile-default/39417/2

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-01-30 11:06:13 -05:00
parent 4da5c14751
commit 50e3560c6f
6 changed files with 3 additions and 5 deletions

View File

@@ -88,6 +88,8 @@ The below steps rely on you first configuring access to the Terraform state in s
terraform plan terraform plan
``` ```
If the `terraform init` command fails, you may need to run `terraform init -upgrade` to make sure new module versions are picked up.
1. Apply changes with `terraform apply`. 1. Apply changes with `terraform apply`.
1. Remove the space deployer service instance if it doesn't need to be used again, such as when manually running terraform once. 1. Remove the space deployer service instance if it doesn't need to be used again, such as when manually running terraform once.

View File

@@ -12,7 +12,6 @@ terraform {
key = "admin.tfstate.demo" key = "admin.tfstate.demo"
encrypt = "true" encrypt = "true"
region = "us-gov-west-1" region = "us-gov-west-1"
profile = "notify-terraform-backend"
} }
} }

View File

@@ -47,7 +47,7 @@ if [[ ! -s "secrets.auto.tfvars" ]]; then
fi fi
echo "Importing terraform state for $username" echo "Importing terraform state for $username"
terraform init terraform init -upgrade
key_name=$username-admin-dev-key key_name=$username-admin-dev-key

View File

@@ -12,7 +12,6 @@ terraform {
key = "admin.tfstate.prod" key = "admin.tfstate.prod"
encrypt = "true" encrypt = "true"
region = "us-gov-west-1" region = "us-gov-west-1"
profile = "notify-terraform-backend"
} }
} }

View File

@@ -12,7 +12,6 @@ terraform {
key = "admin.tfstate.sandbox" key = "admin.tfstate.sandbox"
encrypt = "true" encrypt = "true"
region = "us-gov-west-1" region = "us-gov-west-1"
profile = "notify-terraform-backend"
} }
} }

View File

@@ -12,7 +12,6 @@ terraform {
key = "admin.tfstate.stage" key = "admin.tfstate.stage"
encrypt = "true" encrypt = "true"
region = "us-gov-west-1" region = "us-gov-west-1"
profile = "notify-terraform-backend"
} }
} }