AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Edit-EC2ImageAttribute-ImageId <String>-LaunchPermission_Add <LaunchPermission[]>-Attribute <String>-Description <String>-ImdsSupport <String>-OperationType <OperationType>-OrganizationalUnitArn <String[]>-OrganizationArn <String[]>-ProductCode <String[]>-LaunchPermission_Remove <LaunchPermission[]>-UserGroup <String[]>-UserId <String[]>-Value <String>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonEC2Config>
Attribute
parameter, or one of the following parameters: Description
, ImdsSupport
, or LaunchPermission
.
Images with an Amazon Web Services Marketplace product code cannot be made public.
To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance. description
| imdsSupport
| launchPermission
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
v2.0
to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens
automatically set to required
so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit
is set to 2
. For more information, see Configure the AMI in the Amazon EC2 User Guide.v2.0
, you can't undo it. The only way to “reset” your AMI is to create a new AMI from the underlying snapshot.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | OrganizationalUnitArns |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | OrganizationArns |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ProductCodes |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | UserGroups |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | UserIds |
Attribute
parameter is description
or imdsSupport
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Edit-EC2ImageAttribute -ImageId ami-12345678 -Description "New description"This example updates the description for the specified AMI.
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType add -UserGroup allThis example makes the AMI public (for example, so any AWS account can use it).
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType remove -UserGroup allThis example makes the AMI private (for example, so that only you as the owner can use it).
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType add -UserId 111122223333This example grants launch permission to the specified AWS account.
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType remove -UserId 111122223333This example removes launch permission from the specified AWS account.
AWS Tools for PowerShell: 2.x.y.z