chore: terraform
This commit is contained in:
parent
3d0eca75d9
commit
8551aa1333
2 changed files with 4 additions and 7 deletions
|
@ -10,11 +10,10 @@ steps:
|
|||
- name: terraform
|
||||
image: hashicorp/terraform:latest
|
||||
environment:
|
||||
AWS_CONFIG:
|
||||
from_secret: aws_config
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: aws_access_key_id
|
||||
AWS_SECRET_ACCESS_KEY
|
||||
from_secret: aws_secret_access_key
|
||||
commands:
|
||||
- mkdir -p ~/.aws/
|
||||
- echo $${AWS_CONFIG} | base64 -d > ~/.aws/credentials
|
||||
- cd resources/infra
|
||||
- terraform init
|
||||
- terraform plan
|
||||
|
|
|
@ -4,8 +4,6 @@ terraform {
|
|||
key = "terraform.tfstate"
|
||||
region = "fr-par"
|
||||
endpoints = { s3 = "https://s3.fr-par.scw.cloud" }
|
||||
profile = "miniauth"
|
||||
shared_credentials_files = ["~/.aws/credentials"]
|
||||
skip_credentials_validation = true
|
||||
skip_region_validation = true
|
||||
skip_requesting_account_id = true
|
||||
|
|
Loading…
Add table
Reference in a new issue