AWS MediaStore Container Policy

This page shows how to write Terraform and CloudFormation for MediaStore Container Policy and write them securely.

aws_media_store_container_policy (Terraform)

The Container Policy in MediaStore can be configured in Terraform with the resource name aws_media_store_container_policy. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

wildcard_principal.tf#L9
resource "aws_media_store_container_policy" "msc_allow_no_wildcard" {
  container_name = "example"

  policy = <<EOF
{
    "Version": "2012-10-17",
wildcard_principal.tf#L9
resource "aws_media_store_container_policy" "msc_allow_no_wildcard" {
  container_name = "example"

  policy = <<EOF
{
    "Version": "2012-10-17",

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a MediaStore Container Policy.

AWS::MediaStore::Container MetricPolicy (CloudFormation)

The Container MetricPolicy in MediaStore can be configured in CloudFormation with the resource name AWS::MediaStore::Container MetricPolicy. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

ContainerLevelMetrics A setting to enable or disable metrics at the container level.
Required: Yes
Type: String
Allowed values: DISABLED | ENABLED
Update requires: No interruption

MetricPolicyRules A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.
Required: No
Type: List of MetricPolicyRule
Maximum: 300
Update requires: No interruption

Explanation in CloudFormation Registry

The metric policy that is associated with the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. In the policy, you must indicate whether you want MediaStore to send container-level metrics. You can also include rules to define groups of objects that you want MediaStore to send object-level metrics for.

To view examples of how to construct a metric policy for your use case, see Example Metric Policies.

Frequently asked questions

What is AWS MediaStore Container Policy?

AWS MediaStore Container Policy is a resource for MediaStore of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS MediaStore Container Policy?

For Terraform, the ffsclyh/config-lint and stelligent/config-lint source code examples are useful. See the Terraform Example section for further details.