Skip to content

Add launchPermissions field to aws.ec2.image resource #6362

@syrull

Description

@syrull

Summary

The aws.ec2.image resource is missing a field to determine whether an AMI is shared with other accounts.

Note: The public field already exists and works correctly.

AWS API Reference

  • DescribeImageAttribute with Attribute=launchPermission returns sharing details

Proposed MQL Field

"launchPermissions": {
    Type:      types.List(types.Dict),
    Doc:       "Launch permissions for the image (user IDs and groups)",
}

Use Case

// Find AMIs shared with all users
aws.ec2.images.where(launchPermissions.any(Group == "all"))

Additional Context

This field is needed to query AMI sharing configuration beyond just the public/private status.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions