Editing a container policy
You can edit the permissions in the default container policy, or you can create a new policy that replaces the default policy. It takes up to five minutes for the new policy to take effect.
To edit a container policy (console)
Open the MediaStore console at https://console.aws.amazon.com/mediastore/
. -
On the Containers page, choose the container name.
-
Choose Edit policy. For examples that show how to set different permissions, see Example container policies.
-
Make the appropriate changes, and then choose Save.
To edit a container policy (AWS CLI)
-
Create a file that defines the container policy:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadOverHttps", "Effect": "Allow", "Action": ["mediastore:GetObject", "mediastore:DescribeObject"], "Principal": "*", "Resource": "arn:aws:mediastore:
us-west-2
:111122223333
:container/ExampleLiveDemo
/*", "Condition": { "Bool": { "aws:SecureTransport": "true" } } } ] } -
In the AWS CLI, use the
put-container-policy
command:aws mediastore put-container-policy --container-name
ExampleLiveDemo
--policyfile://ExampleContainerPolicy.json
--regionus-west-2
This command has no return value.