Skip to content

Commit efcd3d0

Browse files
ystrosjpalermo
authored andcommitted
Add error when using assume role + state bucket
[#184999423] Add AssumeRole support to bbl
1 parent 1f1f002 commit efcd3d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/downloader.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package config
22

33
import (
4+
"errors"
5+
46
"github.com/cloudfoundry/bosh-bootloader/backends"
57
)
68

@@ -29,6 +31,9 @@ func (d Downloader) DownloadAndPrepareState(flags GlobalFlags) error {
2931
AWSSecretAccessKey: flags.AWSSecretAccessKey,
3032
}
3133

34+
if flags.AWSAssumeRole != "" {
35+
return errors.New("Assume role not supported when using an AWS state bucket")
36+
}
3237
case "gcp":
3338
config = backends.Config{
3439
Dest: flags.StateDir,

0 commit comments

Comments
 (0)