Skip to content

Commit

Permalink
skip cfn resources without a physical resource attached
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Jun 15, 2020
1 parent 4336513 commit 46e9334
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iamy/cfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func (c *cfnClient) PopulateMangedResourceData() error {
}

for _, resource := range resources.StackResourceSummaries {
if resource.PhysicalResourceId == nil {
continue
}
resType := CfnResourceType(*resource.ResourceType)
if resType == "AWS::IAM::ManagedPolicy" {
resType = CfnIamPolicy // we dont care about the distinction as they are both in the "policy" namespace
Expand Down

0 comments on commit 46e9334

Please sign in to comment.