actionECS

untag_resource

Removes the given tags from the provided resource

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.ecs.actions
Nameuntag_resource
ReturnNone

Usage

JSON

{
  "name": "untag-resource",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.ecs.actions",
    "func": "untag_resource",
    "arguments": {
      "tag_keys": [],
      "resource_arn": ""
    }
  }
}

YAML

name: untag-resource
provider:
  arguments:
    resource_arn: ""
    tag_keys: []
  func: untag_resource
  module: chaosaws.ecs.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
tagslistYesTagsList of tags to remove from the resource
resource_arnstringYesARNResource ARN to which to unset tags from

For ECS resources, the long-form ARN must be used. See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-arn-timeline

Example

{
  "tag_keys": ["MyTagKey", "MyOtherTagKey"],
  "resource_arn": "arn:aws:ecs:...:service/cluster-name/service-name"
}

Signature

def untag_resource(tag_keys: List[str],
                   resource_arn: str,
                   configuration: Dict[str, Dict[str, str]] = None,
                   secrets: Dict[str, Dict[str, str]] = None):
    pass