Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#AWS

AWS ECS Fargate Task Definition Security Hardening Guide

Customize the variables below to instantly engineer your prompt.

Required Variables

ecs-fargate-task-definition-security-hardening.txt
Act as a Cloud Security Posture Manager. Generate a mathematically hardened, SOC2-compliant JSON task definition for an ECS Fargate service. You must strictly enforce the following immutable security vectors: 1) Hardcode the `readonlyRootFilesystem` flag to [READ_ONLY_ROOT_FS] (true) to physically prevent post-exploitation malware installation. 2) Force the container to drop root privileges by running exclusively as the non-privileged numeric [USER_ID]. 3) Architect strict IAM isolation by assigning the exact [TASK_ROLE_ARN] for internal AWS API access, decoupled completely from the [EXECUTION_ROLE_ARN] handling the ECR image pulls. 4) Write a technical directive forbidding the use of plaintext environment variables, replacing them entirely with the `secrets` array mapping to secure AWS Systems Manager (SSM) Parameter Store ARNs.

Example Text Output

"This configuration provides a NIST-compliant task definition that minimizes the attack surface by enforcing least-privilege roles and immutable filesystems."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "AWS ECS Fargate Task Definition Security Hardening Guide" prompt used for?

This configuration provides a NIST-compliant task definition that minimizes the attack surface by enforcing least-privilege roles and immutable filesystems.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.