AWS Security ChangesHomeSearch

AWS imagebuilder: Add PowerShell example for getting image policy details

Service: imagebuilder · 2026-10-15 · Documentation medium

File: imagebuilder/latest/userguide/view-image-details.md · Type: iam

Summary

Renames the image policy section and adds an AWS Tools for PowerShell example for Get-EC2IBImagePolicy; also updates the Amazon Inspector getting-started link.

Security assessment

The added cmdlet documents how to retrieve an image policy, which helps inspect access-control configuration. It does not fix a vulnerability or incident.

Evidence

+The following example shows how to use the [Get-EC2IBImagePolicy](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2IBImagePolicy.html) cmdlet to get the details of an image policy with its ARN:

Diff

diff --git a/imagebuilder/latest/userguide/view-image-details.md b/imagebuilder/latest/userguide/view-image-details.md
index cf53fb5..1553a2d 100644
--- a//imagebuilder/latest/userguide/view-image-details.md
+++ b//imagebuilder/latest/userguide/view-image-details.md
@@ -7 +7 @@
-View image details in the Image Builder consoleGet image policy details from the AWS CLI
+View image details in the Image Builder consoleGet image policy details
@@ -19 +19 @@ For more information about resources that another AWS account shared with you th
-  * Get image policy details from the AWS CLI
+  * Get image policy details
@@ -299 +299 @@ If you've activated scanning, the **Security findings** tab displays Common Vuln
-  1. Activate Amazon Inspector scans for your account. For more information, see [Getting started with Amazon Inspector](https://docs.aws.amazon.com/inspector/v1/userguide/inspector_getting-started.html) in the _Amazon Inspector User Guide_.
+  1. Activate Amazon Inspector scans for your account. For more information, see [Getting started tutorial: Activating Amazon Inspector](https://docs.aws.amazon.com/inspector/latest/user/getting_started_tutorial.html) in the _Amazon Inspector User Guide_.
@@ -352 +352,4 @@ The **Tags** tab displays any tags that you have defined for your image.
-## Get image policy details from the AWS CLI
+## Get image policy details
+
+AWS CLI
+    
@@ -358,0 +362,10 @@ The following example shows how to get the details of an image policy with its A
+PowerShell
+    
+
+The following example shows how to use the [Get-EC2IBImagePolicy](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2IBImagePolicy.html) cmdlet to get the details of an image policy with its ARN:
+    
+    
+    Get-EC2IBImagePolicy -ImageArn arn:aws:imagebuilder:us-west-2:123456789012:image/example-image/2019.12.02
+
+The cmdlet returns the policy as a JSON string. If no policy is attached to the image, the cmdlet returns `{}`.
+