From 668eebb94cd2a3bc6cf17bc6ed7e6ac500ecdea6 Mon Sep 17 00:00:00 2001 From: pi-unnerup Date: Wed, 18 Dec 2019 16:53:33 +0000 Subject: [PATCH] fix: flag is arg and remove unnecessary comments --- pkg/simulator/terraform.go | 4 ++-- terraform/deployments/AWS/providers.tf | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/simulator/terraform.go b/pkg/simulator/terraform.go index db8a8ee7..973b618c 100644 --- a/pkg/simulator/terraform.go +++ b/pkg/simulator/terraform.go @@ -25,8 +25,8 @@ func PrepareTfArgs(cmd string, bucket string) []string { } if cmd == "init" { - providerBucketFlag := fmt.Sprintf("-backend-config=bucket=%s", bucket) - arguments = append(arguments, providerBucketFlag) + providerBucketArg := fmt.Sprintf("-backend-config=bucket=%s", bucket) + arguments = append(arguments, providerBucketArg) } if cmd == "apply" || cmd == "destroy" { diff --git a/terraform/deployments/AWS/providers.tf b/terraform/deployments/AWS/providers.tf index 66abf067..2c27257b 100644 --- a/terraform/deployments/AWS/providers.tf +++ b/terraform/deployments/AWS/providers.tf @@ -7,8 +7,6 @@ provider "aws" {} terraform { backend "s3" { key = "simulator.tfstate" - // 'bucket='' must have this exact number of spaces for simulator to replace it properly - //bucket = "###" // Optional, S3 Bucket Server Side Encryption encrypt = false }