Skip to content

Commit

Permalink
fixed invalid assignment aws_region
Browse files Browse the repository at this point in the history
  • Loading branch information
psihachina committed Sep 23, 2022
1 parent c887668 commit 9171a9e
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion internal/commands/down.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (o *DownOptions) Complete(cmd *cobra.Command, args []string) error {
}

if len(o.Config.Terraform["infra"].AwsRegion) == 0 {
o.Config.Terraform["infra"].AwsProfile = o.Config.AwsRegion
o.Config.Terraform["infra"].AwsRegion = o.Config.AwsRegion
}

if len(o.Config.Terraform["infra"].Version) == 0 {
Expand Down Expand Up @@ -370,3 +370,25 @@ func destroyApp(ui terminal.UI, o *DownOptions) error {

return nil
}

//provider "aws" {
// profile = var.aws_profile
// region = var.aws_region
// default_tags {
// tags = {
// env = "testnut"
// namespace = "testnut"
// terraform = "true"
// }
// }
//}
//
//terraform {
// backend "s3" {
// bucket = "testnut-tf-state"
// key = "testnut/terraform.tfstate"
// region = "us-east-1"
// profile = "default"
// dynamodb_table = "tf-state-lock"
// }
//}

0 comments on commit 9171a9e

Please sign in to comment.