From 00ac4cc0ba6e62647393bf0b26535404e173ac05 Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Fri, 21 Jun 2024 12:05:51 +0000 Subject: [PATCH] Fix security group filters --- builder/common/step_security_group.go | 2 -- builder/common/step_update_omi.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/builder/common/step_security_group.go b/builder/common/step_security_group.go index d4c0d09e..bfe646b1 100644 --- a/builder/common/step_security_group.go +++ b/builder/common/step_security_group.go @@ -168,8 +168,6 @@ func buildSecurityGroupFilters(input map[string]string) oscgo.FiltersSecurityGro filterValue := []string{v} switch name := k; name { - case "account_ids": - filters.AccountIds = &filterValue case "security_group_ids": filters.SecurityGroupIds = &filterValue case "security_group_names": diff --git a/builder/common/step_update_omi.go b/builder/common/step_update_omi.go index e3d186c3..e655e3df 100644 --- a/builder/common/step_update_omi.go +++ b/builder/common/step_update_omi.go @@ -50,7 +50,7 @@ func (s *StepUpdateOMIAttributes) Run(_ context.Context, state multistep.StateBa } updateImageRequest := oscgo.UpdateImageRequest{ - PermissionsToLaunch: oscgo.PermissionsOnResourceCreation{ + PermissionsToLaunch: &oscgo.PermissionsOnResourceCreation{ Additions: &oscgo.PermissionsOnResource{ AccountIds: &s.AccountIds, GlobalPermission: &s.GlobalPermission,