Skip to content

Elemental Live HLS to MediaPackage v2 Error 403

0

im trying to send an HLS from an elemental live to media package v2 and I get an ERROR 403 on the elemental. ive setup an IAM user with full access to mediaPackage V2., created a secret key , which is what I use as username and password on the elemental. The policy in media package gives "PutObject" access to the IAM user created for the particular channel. What could be causing the issue ? when I check in IAM, it says that the secret key has never been used.

  • in the policy for the channel ,

    { "Version": "2012-10-17", "Id": "AllowIamUser", "Statement": [ { "Sid": "AllowIamUserToEmpChannel", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::AccountID:user/ElementalLiveMediaPackageUser" }, "Action": "mediapackagev2:PutObject", "Resource": "arn:aws:mediapackagev2:Region:AccountID:channelGroup/ChannelGroupName/channel/ChannelName" } ] } ive gotten it to work when I replace {"AWS": "arn:aws:iam::AccountID:user/ElementalLiveMediaPackageUser"} with {"AWS: "*"} It's a quick fix but not a safe one.

    the user "ElementalLiveMediaPackageUser" has full access to mediapackageV2, so not sure what im missing

asked 8 months ago273 views
3 Answers
1

Hi rjdxb,

MediaLive uses role-based authentication to send to MediaPackage v2. Make sure your MediaLiveCustomPolicy attached to your MediaLiveAccessRole includes the following permissions:

                {
			"Effect": "Allow",
			"Action": [
				"mediapackagev2:PutObject",
				"mediapackagev2:GetChannel"
			],
			"Resource": "*"
		},

No username/password pair is required when this is properly configured.

Regards, Steve

AWS
answered 8 months ago
1

You have two options here:

  1. Use programmatic access.
  1. Use specific IP restricted based access

This is not best practices but you can try to limit access by ip:

https://docs.aws.amazon.com/mediapackage/latest/userguide/endpoint-auth.html

Apply this policy to Ingest authorization

Restrict access by IP range

AWS
answered 8 months ago
0

Based on the information provided, there are a few potential reasons for the ERROR 403 you're experiencing when trying to send HLS from Elemental Live to MediaPackage v2:

  1. IAM User Permissions: While you've created an IAM user with full access to MediaPackage v2, ensure that the user also has the necessary permissions to assume any required roles and access other related services.

  2. Channel Policy Configuration: Double-check that the channel policy in MediaPackage v2 is correctly configured. Make sure the ARN of the IAM user is accurately specified in the Principal section of the policy, and that the "PutObject" action is allowed for the correct channel resource.

  3. Credentials Usage: If the IAM console shows that the secret key has never been used, it's possible that the credentials are not being properly applied in the Elemental Live configuration. Verify that you're using the access key ID as the username and the secret access key as the password in the Elemental Live setup.

  4. Elemental Live Configuration: Ensure that you've correctly set up the output in Elemental Live. For MediaPackage v2 (HLS output), you need to use the specific input endpoints provided by MediaPackage. These URLs should start with "https://" and be slightly different from each other.

  5. Network Configuration: Although not explicitly mentioned in your setup, ensure there are no network-related issues preventing communication between Elemental Live and MediaPackage v2. Check that any necessary security groups or firewall rules are properly configured.

  6. Encryption Settings: If you're using encryption, make sure the encryption settings are correctly configured on both the Elemental Live and MediaPackage v2 sides.

To troubleshoot further:

  • Double-check all the configuration steps, especially the channel policy and the credentials used in Elemental Live.
  • Verify that the MediaPackage v2 channel and input endpoints are correctly set up and accessible.
  • Check CloudWatch logs or any available Elemental Live logs for more detailed error messages.
  • Consider temporarily granting broader permissions to the IAM user to rule out specific permission issues, then narrow down the permissions once the connection is established.

If the issue persists after verifying these points, you may need to contact AWS support for more in-depth troubleshooting, as there could be an underlying service issue or a more complex configuration problem.
Sources
MediaLive unable to open output or stream to MediaPackage | AWS re:Post
Ingest authorization - AWS Elemental MediaPackage

answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.