Skip to content

Commit 93d9c25

Browse files
committed
Support for AWS_PROFILE with s3 backend block whenever running locally
1 parent f7b03f2 commit 93d9c25

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/command_env.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ locals {
2727
2828
terraform {
2929
backend "s3" {
30-
encrypt = true
30+
encrypt = true{{ if .Local }}
31+
profile = "{{.AwsProfile}}"{{ end }}
3132
}
3233
}
3334

src/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
const Version = "v0.3.4"
3+
const Version = "v0.3.5"
44

55
const CiEnvVar = "CI"
66
const TerraformLocalEnvVar = "TF_LOCAL"

0 commit comments

Comments
 (0)