Skip to content

AWS cloudcontrol cli AWS::MediaPackageV2::Channel GetResource returns GeneralServiceException

0

When I query for AWS::MediaPackageV2::Channel resource the cloudcontrol cli returns GeneralServiceException. I noticed this while using terraform awscc provider which uses the same cloudcontrol to get-resource AWS::MediaPackageV2::Channel. Any ideas? Thanks.

$ aws cloudcontrol get-resource --type-name AWS::MediaPackageV2::Channel --identifier arn:aws:mediapackagev2:us-west-2:***********:channelGroup/demo-channel/channel/EN-demo --region us-west-2 

An error occurred (GeneralServiceException) when calling the GetResource operation: AWS::MediaPackageV2::Channel Handler returned status FAILED: Error occurred during operation 'AWS::MediaPackageV2::Channel'. (HandlerErrorCode: GeneralServiceException, RequestToken: c8ec2c5e-****-****-****-686e3116c4b3)
2 Answers
1

The issue you're experiencing with the AWS CloudControl CLI returning a GeneralServiceException when querying for an AWS::MediaPackageV2::Channel resource is not uncommon. This error typically indicates that there's a problem on the service side rather than with your input or permissions.

Here are a few things you can try to troubleshoot and potentially resolve the issue:

  1. Verify that the ARN you're using is correct and that the channel actually exists in the specified region.

  2. Check if you have the necessary permissions to access the MediaPackage v2 channel. Ensure your IAM user or role has the appropriate policies attached.

  3. Try using the MediaPackage v2 API directly instead of CloudControl. You can use the AWS CLI command for MediaPackage v2 to get channel information:

    aws mediapackagev2 get-channel --channel-group-name demo-channel --channel-name EN-demo --region us-west-2

  4. If the above command works, it suggests the issue is specific to CloudControl's integration with MediaPackage v2.

  5. Check if there are any known issues or service health alerts for MediaPackage v2 or CloudControl in your region.

  6. If the problem persists, you may want to contact AWS support for further assistance, as this could be a service-side issue that needs their attention.

  7. As a workaround, if you're using Terraform with the awscc provider, you might consider using the standard AWS provider instead for MediaPackage v2 resources, as it doesn't rely on CloudControl.

Remember that MediaPackage v2 is a relatively new service, and there might be some integration issues with CloudControl that AWS is still working on resolving.
Sources
MediaPackage and MediaPAckagev2 channel in CloudFormation problem | AWS re:Post
Access logging - AWS Elemental MediaPackage v2

answered 8 months ago
EXPERT
reviewed 8 months ago
0

Make sure that you can get access to any other services in the same region.

Make sure that you are using right channel arn.

The same command is working for me:

aws cloudcontrol get-resource --type-name AWS::MediaPackageV2::Channel --identifier arn:aws:mediapackagev2:eu-west-1:111222333444:channelGroup/region/channel/test

Result:

{ "TypeName": "AWS::MediaPackageV2::Channel", "ResourceDescription": { "Identifier": "arn:aws:mediapackagev2:eu-west-1:111222333444:channelGroup/region/channel/test", "Properties": "{.....................................................................}" } }

AWS
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.