Skip to content

Instantly share code, notes, and snippets.

@shawn-hurley
Created October 13, 2021 18:49
Show Gist options
  • Save shawn-hurley/da547a60fa370b15013efa5255267e17 to your computer and use it in GitHub Desktop.
Save shawn-hurley/da547a60fa370b15013efa5255267e17 to your computer and use it in GitHub Desktop.
diff --git a/velero-plugin-for-aws/volume_snapshotter.go b/velero-plugin-for-aws/volume_snapshotter.go
index 03eac81..1547173 100644
--- a/velero-plugin-for-aws/volume_snapshotter.go
+++ b/velero-plugin-for-aws/volume_snapshotter.go
@@ -50,6 +50,7 @@ type VolumeSnapshotter struct {
// takes AWS session options to create a new session
func getSession(options session.Options) (*session.Session, error) {
+ options.SharedConfigState = session.SharedConfigEnable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment