EC2PUBLISHIMG-3.13(1)
π NAME π
okay so this is the ec2publishimg.1 page β yes, EC2PUBLISHIMG-3.13(1) β and the main character is ec2publishimg: modify the visibility permissions for an AMI. That's the whole name section, bestie. π
β¨ SYNOPSIS β¨
ec2publishimg [option]
π¦ DESCRIPTION π¦
ec2publishimg sets the visibility of an AMI so other people can use the image, or makes the image private, i.e. only available to the account owner. periodt.
πΈ OPTIONS πΈ
-a,--accountACCOUNT_NAME β okay so this specifies the account to use to connect to EC2. The account is specified in the config file~/.ec2utils.conf. The account is specified as a section with[account-ACCOUNT_NAME]delimiter. The options of the sections areaccess_key_id,secret_access_key,ssh_key_name, andssh_private_key. These allow the program to connect to EC2. If theaccess_key_idand/orsecret_access_keyare not found in~/.ec2utils.conf, the search will useACCOUNT_NAMEto look for a matching section[profile ACCOUNT_NAME]in~/.aws/configor[ACCOUNT_NAME]in~/.aws/credentials. iykyk.--access-idAWS_ACCESS_KEY β Specifies the AWS access key and overrides the value given for the account with theaccess_key_idin the configuration file.--allow-copyβ Set the image copy permissions. The option supports the keywordimageto allow those that the image is shared with to copy it; the keywordnonewhich does not allow copy access and is the default behavior. The option allows the specification of an AWS account number or a comma separated list with no white space to specify multiple account numbers to allow those accounts to copy the image. copy that, bestie.-n,--dry-runβ The program will not perform any action. It will provide information onstdoutabout the actions it would perform. preview vibes.-f,--fileCONFIG_FILE β Specifies the configuration file to use. The default is~/.ec2utils.conf.--image-idAMI_ID β Specify the AMI ID of the image to be published. This option is mutually exclusive with--image-name,--image-name-frag, and--image-name-match.--image-nameIMAGE_NAME β Specify the name of the image to be published. The program will look for an exact match of the name. This option is mutually exclusive with--image-id,--image-name-frag, and--image-name-matchoptions.--image-name-fragIMAGE_NAME_FRAGMENT β Specify a section of an image name for the image(s) to be published. Every image that matches the name fragment will be published. This option is mutually exclusive with the--image-id,--image-name-name, and--image-name-matchoptions. (Yup,--image-name-nameβ that's literally what the page says, I'm not correcting it π.)--image-name-matchREGEX β Specify a regular expression to match an image name. Every image matching the regular expression will be published. This option is mutually exclusive with the--image-id,--image-name-name, and--image-name-fragoptions.-r,--regionsEC2_REGIONS β A comma separated list of Amazon EC2 regions, or a single region. If no region argument is specified all EC2 connected regions will be processed. EC2 disconnected regions have different API keys and thus the specified account would not work with the disconnected regions. If a disconnected region is to be processed specify the region explicitly on the command line, and only the region of interest along with the matching account. important caveat, bestie.-s,--secret-keyAWS_SECRET_KEY β Specifies the AWS secret access key and overrides the value given for the account with thesecret_access_keyin the configuration file.--share-withSHARE β Specify the scope of the image publishing/sharing. The option supports the keywordallto set the image to public, the keywordnoneto set the image private, or expects an AWS account number to share the image with a specific account. Use a comma separated list with no white space to specify multiple account numbers. By default the selected image will be published, i.e.allis the default value. default is public, noted.--verboseβ Print extra output about the operations performed toSTDOUT.--versionβ Print the version ofheprogram. (The original page sayshe, and honestly? iconic typo, keeping it π.)
π EXAMPLE π
ec2publishimg --account example --image-name-match production-v2
--share-with all
Will set all images in all connected regions that match the production-v2 regular expression as public. ate.
π AUTHOR π
Robert Schweikert (rjschwei@suse.com)
That's the whole ec2publishimg.1 page, EC2PUBLISHIMG-3.13(1) β source/version is right there in the page name, and the footer has no date line, so this is the cute sign-off: bye bestie, go forth and publish responsibly πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: python313-ec2imgutils 10.0.3-bp160.1.11 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms