Biblioteca de prompts

Prompts de AWS

Prompts para trabajo en AWS: escribir políticas IAM de mínimo privilegio, revisar arquitecturas y encontrar ahorros en una factura.

Los prompts están en inglés, el idioma en que se escribieron y probaron. Las descripciones y las instrucciones de estas páginas están traducidas.

  • iam
  • security
  • least privilege
97/100 · 147 tokens

Política IAM de mínimo privilegio

Escribe una política IAM que concede solo las acciones y los recursos que necesita una carga de trabajo.

Úsalo cuando: Al sustituir una política con comodines o al escribir la primera política para una nueva función Lambda o rol de servicio.

prompt
You are an AWS security engineer writing IAM policies.

## Task
Draft an IAM identity policy that allows exactly the access described below.

## Requirements
- Never use "*" as an action or as a whole resource.
- Scope every statement to the ARNs named in the description.
- Add a condition key wherever the description restricts access by tag, prefix, or encryption.
- Use one statement per service with a Sid that names its purpose.
- Do not grant any action the description does not require.

## Output format
Return the policy document as one fenced JSON block, followed by a table with the columns Sid, Why it is needed, and What it does not allow.

## Input
<access>
{{access}}
</access>

Variables

{{access}}
Lo que debe hacer la carga de trabajo, con nombres de recursos o ARN.

Entrada de ejemplo

access: a Lambda function reads objects under the reports/ prefix of the bucket acme-data and writes items to the DynamoDB table Orders.

Salida de ejemplo

```json
{ "Version": "2012-10-17", "Statement": [ { "Sid": "ReadReports", "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::acme-data/reports/*" } ] }
```
| Sid | Why it is needed | What it does not allow |
|---|---|---|
| ReadReports | Reads report files | Listing the bucket or reading other prefixes |

Ilustrativa: escrita para mostrar la forma esperada, no generada por un modelo.

  • architecture
  • well-architected
  • review
100/100 · 162 tokens

Revisión de arquitectura de AWS

Revisa una arquitectura según fiabilidad, seguridad, coste y operaciones, con hallazgos priorizados.

Úsalo cuando: Antes de una revisión de diseño, o al hacerte cargo de una carga de trabajo que no construiste.

prompt
You are an AWS solutions architect reviewing a workload design.

## Task
Review the architecture described below for reliability, security, cost, and operational risks.

## Requirements
- Report only risks that follow from the description; do not assume components it does not mention.
- Rank each finding as high, medium, or low, and state the failure it leads to.
- Give one concrete change for every high finding, naming the AWS service or setting.
- List the questions you need answered where the description is not specific enough to judge.

## Output format
Return markdown with three sections: Findings (a table with the columns Area, Severity, Risk, and Recommended change), Open questions (bulleted list), and Top 3 actions (numbered list).

## Input
<architecture>
{{architecture}}
</architecture>

Variables

{{architecture}}
Los componentes, cómo se conectan, las regiones y zonas usadas y la carga esperada.

Entrada de ejemplo

architecture: one EC2 instance in a single zone running an API, an RDS MySQL instance without Multi-AZ, and an S3 bucket for uploads.

Salida de ejemplo

## Findings
| Area | Severity | Risk | Recommended change |
|---|---|---|---|
| Reliability | High | A zone failure takes the API offline | Run 2 instances in an Auto Scaling group across 2 zones behind an Application Load Balancer |

Ilustrativa: escrita para mostrar la forma esperada, no generada por un modelo.

Hazlo tuyo

Edita los requisitos para que se ajusten a tus estándares y revisa el resultado. El analizador de prompts vuelve a puntuarlo mientras escribes, el optimizador elimina el relleno sin perder ningún requisito y el escáner de seguridad marca secretos y datos personales antes de que lo envíes a un modelo.

Más categorías