Add permissions for AWS Elemental MediaLive #315
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add permissions for AWS Elemental MediaLive
This PR adds comprehensive support for AWS Elemental MediaLive by updating IAM policies and implementing resource cleanup functionality.
Changes
IAM Policy Updates
aws/policy/security-services.yaml
: AddedAWSElementalMediaLiveFullAccess
to allowed managed policies and consolidated several policy patterns to stay under max policy lengthaws/policy/application-services.yaml
: Added MediaLive-specific permissions including:medialive:Describe*
,medialive:List*
Resource Cleanup Implementation
aws/terminator/application_services.py
: Added 8 new terminator classes for MediaLive resources:MediaLiveChannel
- Handles channel lifecycle with proper stop-before-delete logicMediaLiveInput
- Manages input sourcesMediaLiveInputSecurityGroup
- Security group cleanupMediaLiveChannelPlacementGroup
- Placement group managementMediaLiveCluster
- Cluster resource cleanupMediaLiveNetwork
- Network resource managementMediaLiveNode
- Node cleanupMediaLiveSdiSource
- SDI source managementTesting
tox
Tox output (click to expand)
...PLAY RECAP *******************************************************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0
pycodestyle: OK (0.32=setup[0.06]+cmd[0.26] seconds)
pylint: OK (3.48=setup[0.02]+cmd[3.47] seconds)
yamllint: OK (1.47=setup[0.02]+cmd[1.45] seconds)
policy: OK (1.82=setup[0.02]+cmd[0.83,0.98] seconds)
congratulations :) (7.21 seconds)