delete_experiment_template
Remove an AWS Fault Injection Service experiment template by specifying its ID. This action permanently deletes the template configuration from your AWS FIS environment.
Instructions
Delete an AWS FIS experiment template.
Args:
template_id: ID of the experiment template to delete
region: AWS region to use (default: us-east-1)
Returns:
Success or error message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | ||
| region | No | us-east-1 |
Implementation Reference
- aws_fis_mcp/tools.py:291-308 (handler)The main handler function for the 'delete_experiment_template' tool. It requires write mode and uses the AWS FIS boto3 client to delete the specified experiment template.@require_write_mode def delete_experiment_template(template_id: str, region: str = "us-east-1") -> str: """ Delete an AWS FIS experiment template. Args: template_id: ID of the experiment template to delete region: AWS region to use (default: us-east-1) Returns: Success or error message """ try: fis = boto3.client('fis', region_name=region) fis.delete_experiment_template(id=template_id) return f"Successfully deleted experiment template {template_id}" except Exception as e: return f"Error deleting experiment template: {str(e)}"
- aws_fis_mcp/server.py:32-32 (registration)Registers the delete_experiment_template function as an MCP tool using the FastMCP app.tool() decorator.app.tool()(delete_experiment_template)
- aws_fis_mcp/server.py:15-15 (registration)Imports the delete_experiment_template handler from aws_fis_mcp.tools.delete_experiment_template,