AWS Security ChangesHomeSearch

AWS ec2: Fix modify-image-attribute command name and add AMI sharing links

Service: ec2 · 2026-10-31 · Documentation low

File: ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md

Summary

Corrects the example command name from 'modify-instance-attribute' to 'modify-image-attribute' in all four examples (make AMI public, make AMI private, grant launch permissions, remove launch permissions) and adds links to the AMI sharing documentation.

Security assessment

The change fixes an incorrect CLI command name in examples and appends links to existing AMI-sharing docs. Although AMI public sharing and launch permissions are security-relevant topics, the diff documents no new security feature, best practice, or vulnerability fix.

Evidence

+The following `modify-image-attribute` example makes the specified AMI public.

Diff

diff --git a/ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md b/ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md
index 68db7e9..9b779d9 100644
--- a//ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md
+++ b//ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md
@@ -19 +19 @@ CLI
-The following `modify-instance-attribute` example makes the specified AMI public.
+The following `modify-image-attribute` example makes the specified AMI public.
@@ -28,0 +29,2 @@ This command produces no output.
+For more information, see [Make your AMI publicly available for use in Amazon EC2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html) in the _Amazon EC2 User Guide_.
+
@@ -31 +33 @@ This command produces no output.
-The following `modify-instance-attribute` example makes the specified AMI private.
+The following `modify-image-attribute` example makes the specified AMI private.
@@ -40,0 +43,2 @@ This command produces no output.
+For more information, see [Make your AMI publicly available for use in Amazon EC2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html) in the _Amazon EC2 User Guide_.
+
@@ -43 +47 @@ This command produces no output.
-The following `modify-instance-attribute` example grants launch permissions to the specified AWS account.
+The following `modify-image-attribute` example grants launch permissions to the specified AWS account.
@@ -52,0 +57,2 @@ This command produces no output.
+For more information, see [Share an AMI with specific AWS accounts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html) in the _Amazon EC2 User Guide_.
+
@@ -55 +61 @@ This command produces no output.
-The following `modify-instance-attribute` example removes launch permissions from the specified AWS account.
+The following `modify-image-attribute` example removes launch permissions from the specified AWS account.
@@ -62,0 +69,4 @@ The following `modify-instance-attribute` example removes launch permissions fro
+This command produces no output.
+
+For more information, see [Share an AMI with specific AWS accounts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html) in the _Amazon EC2 User Guide_.
+