Merge pull request #6111 from hashicorp/replace4448
Restrict deregistered AMIs to those owned by self.
This commit is contained in:
commit
cb90e8b375
|
@ -41,6 +41,7 @@ func (s *StepDeregisterAMI) Run(_ context.Context, state multistep.StateBag) mul
|
||||||
))
|
))
|
||||||
|
|
||||||
resp, err := regionconn.DescribeImages(&ec2.DescribeImagesInput{
|
resp, err := regionconn.DescribeImages(&ec2.DescribeImagesInput{
|
||||||
|
Owners: aws.StringSlice([]string{"self"}),
|
||||||
Filters: []*ec2.Filter{{
|
Filters: []*ec2.Filter{{
|
||||||
Name: aws.String("name"),
|
Name: aws.String("name"),
|
||||||
Values: []*string{aws.String(s.AMIName)},
|
Values: []*string{aws.String(s.AMIName)},
|
||||||
|
|
Loading…
Reference in New Issue