404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.217.203.133: ~ $
**To apply a resource policy to an image**

The following ``put-image-policy`` command applies a resource policy to an image to enable cross-account sharing of images. We recommend you use the RAM CLI command create-resource-share. If you use the EC2 Image Builder CLI command put-image-policy, you must also use the RAM CLI command promote-resource-share-create-from-policy in order for the resource to be visible to all principals with whom the resource is shared.  ::

    aws imagebuilder put-image-policy \
        --image-arn arn:aws:imagebuilder:us-west-2:123456789012:image/example-image/2019.12.02/1 \
        --policy '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": [ "123456789012" ] }, "Action": [ "imagebuilder:GetImage", "imagebuilder:ListImages" ], "Resource": [ "arn:aws:imagebuilder:us-west-2:123456789012:image/example-image/2019.12.02/1" ] } ] }' 

Output::

    {
        "requestId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "imageArn": "arn:aws:imagebuilder:us-west-2:123456789012:image/example-image/2019.12.02/1"
    }

For more information, see `Setting Up and Managing an EC2 Image Builder Image Pipeline Using the AWS CLI <https://docs.aws.amazon.com/imagebuilder/latest/userguide/managing-image-builder-cli.html>`__ in the *EC2 Image Builder Users Guide*.

Filemanager

Name Type Size Permission Actions
create-component.rst File 1.19 KB 0644
create-distribution-configuration.rst File 2.09 KB 0644
create-image-pipeline.rst File 1.6 KB 0644
create-image-recipe.rst File 1.45 KB 0644
create-image.rst File 890 B 0644
create-infrastructure-configuration.rst File 1.6 KB 0644
delete-component.rst File 759 B 0644
delete-image-pipeline.rst File 736 B 0644
delete-image-recipe.rst File 728 B 0644
delete-image.rst File 722 B 0644
delete-infrastructure-configuration.rst File 842 B 0644
get-component-policy.rst File 897 B 0644
get-component.rst File 1.32 KB 0644
get-distribution-configuration.rst File 2.3 KB 0644
get-image-pipeline.rst File 1.8 KB 0644
get-image-policy.rst File 855 B 0644
get-image-recipe-policy.rst File 923 B 0644
get-image.rst File 3.28 KB 0644
get-infrastructure-configuration.rst File 1.72 KB 0644
import-component.rst File 1.13 KB 0644
list-component-build-versions.rst File 1.33 KB 0644
list-components.rst File 1.08 KB 0644
list-distribution-configurations.rst File 1003 B 0644
list-image-build-versions.rst File 7.09 KB 0644
list-image-pipeline-images.rst File 2.87 KB 0644
list-image-recipes.rst File 1.57 KB 0644
list-images.rst File 887 B 0644
list-infrastructure-configurations.rst File 1.37 KB 0644
list-tags-for-resource.rst File 634 B 0644
put-component-policy.rst File 1.38 KB 0644
put-image-policy.rst File 1.31 KB 0644
put-image-recipe-policy.rst File 1.44 KB 0644
start-image-pipeline-execution.rst File 820 B 0644
tag-resource.rst File 727 B 0644
untag-resource.rst File 725 B 0644
update-distribution-configuration.rst File 1.45 KB 0644
update-image-pipeline.rst File 1.45 KB 0644
update-infrastructure-configuration.rst File 1.45 KB 0644