Skip to content

Commit

Permalink
fix: flag is arg and remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-unnerup committed Dec 18, 2019
1 parent 3f3885b commit 668eebb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/simulator/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 0 additions & 2 deletions terraform/deployments/AWS/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 668eebb

Please sign in to comment.