Skip to content

Commit 9db149b

Browse files
committed
Changed up variables
1 parent 1a45b08 commit 9db149b

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,10 @@ jobs:
209209
BRANCH_NAME="${{ steps.extract_branch.outputs.branch }}"
210210
echo "Using state file: simple-ci-${BRANCH_NAME}/terraform.tfstate"
211211
terraform init \
212-
-backend-config="access_key=${{ secrets.S3_ACCESS_KEY }}" \
213-
-backend-config="secret_key=${{ secrets.S3_SECRET_KEY }}" \
214212
-backend-config="key=simple-ci-${BRANCH_NAME}/terraform.tfstate"
213+
env:
214+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
215+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}
215216

216217
- name: Terraform Validate
217218
working-directory: ./terraform
@@ -236,4 +237,6 @@ jobs:
236237
TF_VAR_nexaa_username: ${{ secrets.NEXAA_USERNAME }}
237238
TF_VAR_nexaa_password: ${{ secrets.NEXAA_PASSWORD }}
238239
TF_VAR_environment: ${{ steps.extract_branch.outputs.branch }}
239-
TF_VAR_container_image: ${{ needs.build.outputs.image }}
240+
TF_VAR_container_image: ${{ needs.build.outputs.image }}
241+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
242+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}

terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
nexaa = {
55
source = "nexaa-cloud/nexaa"
6-
version = "0.1.27"
6+
version = "0.1.37"
77
}
88
}
99

terraform/variables.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,4 @@ variable "environment" {
2020
description = "Environment name (e.g., branch name for preview environments)"
2121
type = string
2222
default = "main"
23-
}
24-
25-
variable "s3_access_key" {
26-
description = "S3 backend access key"
27-
type = string
28-
sensitive = true
29-
}
30-
31-
variable "s3_secret_key" {
32-
description = "S3 backend secret key"
33-
type = string
34-
sensitive = true
3523
}

0 commit comments

Comments
 (0)