> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Devin for AWS Transform

> Agrega Devin a los jobs de modernización de AWS Transform para compilar, probar y entregar el código transformado como pull requests

Devin for AWS Transform incorpora Devin a [AWS Transform](https://aws.amazon.com/transform/) como agente asociado. En un job de AWS Transform, Devin compila y prueba el resultado de la transformación en tu repositorio y lo entrega como pull requests. También crea los procesos de CI/CD y la infraestructura como código necesarios para desplegar en Amazon ECS, Amazon EKS, Amazon EC2 o AWS Lambda. Tu equipo aprueba todo desde AWS Transform.

> [!NOTE]
>
> La publicación es **gratuita en AWS Marketplace con una licencia externa de Devin**. El consumo de Devin se factura a través de tu suscripción a Devin y se aplican los cargos estándar de infraestructura de AWS (AgentCore Runtime, Secrets Manager, CloudWatch). Puedes obtener una suscripción a Devin mediante [Devin by Cognition en AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-yt3ntkdpdjdgm).

## Cómo funciona

La integración consta de dos partes:

* **El conector** es un contenedor que ejecutas en **tu cuenta de AWS** en Amazon Bedrock AgentCore Runtime. AWS Transform lo invoca mediante un rol de IAM que tú creas. Transmite el chat del job, los artefactos, las actualizaciones de progreso y las tareas de revisión entre AWS Transform y Devin.
* **Devin** se ejecuta en el entorno de Cognition con tu suscripción de Devin. Solo confirma cambios a través de tu conexión de control de versiones existente, en forma de pull requests que tú apruebas.

Dentro de un job de AWS Transform:

1. Selecciona **Devin: build, test, deploy** y proporciona los artefactos de modernización y el repositorio conectado.
2. Acuerda el ámbito con Devin en el chat del job. El progreso aparece en el **Plan** y los **Worklogs** del job.
3. Devin propone un plan y te envía las decisiones como **tareas de revisión** de AWS Transform. Las preguntas pendientes se resuelven en el chat.
4. Devin aplica los artefactos transformados en una rama de línea base independiente, los compila y prueba, y abre pull requests. Tú apruebas cada una mediante una tarea de revisión.
5. Tu equipo despliega a través de su propio proceso revisado, con sus propios roles de AWS IAM.

## Modelo de seguridad

* **Sin claves de acceso de AWS de larga duración.** Realiza la instalación con credenciales de corta duración de un administrador o deja que Devin la realice mediante federación OIDC sin claves.
* **Roles separados.** La instalación, el entorno de ejecución y AWS Transform usan cada uno su propio rol. Los dos roles del entorno de ejecución están acotados por un límite de permisos que debes desplegar primero.
* **Clave de API de Devin en Secrets Manager.** El entorno de ejecución lee la clave al iniciarse. Nunca aparece en los parámetros de la pila, el chat, los registros ni en git.
* **Restricciones de repositorios.** Puedes limitar en qué repositorios puede Devin abrir pull requests.
* **Imagen reforzada.** El contenedor no incluye shell ni gestor de paquetes, se ejecuta como usuario no root, se analiza antes de cada versión y se distribuye con SBOM.
* **Solo tráfico saliente.** El entorno de ejecución necesita HTTPS saliente hacia la API de Devin y los endpoints de AWS, y no acepta tráfico entrante salvo las invocaciones de AgentCore.

## Requisitos previos

* Una cuenta de AWS con AWS Transform habilitado en `us-east-1`, la única región compatible actualmente. Úsala para el entorno de ejecución, el secreto y tus jobs.
* Un administrador de AWS que pueda desplegar pilas de CloudFormation que creen roles de IAM.
* AWS CLI v2, configurada con las credenciales de ese administrador.
* Una organización de Devin con los repositorios de código fuente de destino conectados.
* Un **usuario de servicio** de Devin para el entorno de ejecución, con una clave de API que tenga los permisos **ViewOrgSessions**, **UseDevinSessions** y **ManageOrgSessions**. Anota el **ID de organización** de tu organización de Devin.

## Configuración

Con estos pasos, instalas el conector tú mismo mediante la AWS CLI. Si prefieres que Devin ejecute los pasos 3 a 6 por ti, consulta [Opcional: deja que Devin lo instale](#optional-let-devin-install-it).

**1. Suscribirse en el mercado de aplicaciones de AWS**

Suscríbete a [**Devin for AWS Transform: Modernization Agent**](https://aws.amazon.com/marketplace/pp/prodview-rfmglejkakmb6) en AWS Marketplace. En la página de suministro, copia el URI de la imagen y el ARN del repositorio de la imagen, y guárdalos en tu shell como `IMAGE_URI` y `MARKETPLACE_REPO_ARN`, ya que los usan los comandos siguientes. La etiqueta al final del URI de la imagen es la **versión** que introducirás más adelante en AWS Transform.

**2. Solicita que se incluya tu cuenta de AWS en la lista de permitidos**

[Contáctanos](https://devin.ai/contact) para que agreguemos tu cuenta de AWS a la lista de permitidos. Incluye:

* El ID de 12 dígitos de tu cuenta de AWS
* La región que usarás (`us-east-1`)
* El nombre de tu organización de Devin

Una vez que la cuenta esté en la lista de permitidos, abre la consola de AWS Transform y ve a **Partner agents**.

![Navegación de la consola de AWS Transform con Partner agents](https://mintcdn.com/cognitionai-enterprise/sULjogBmcfeG3jdB/images/integrations/aws-transform/console-nav.png?fit=max\&auto=format\&n=sULjogBmcfeG3jdB\&q=85\&s=8eeffffc22287479ea05491e141d51e4)

**devin-modernization** aparece ahora con el estado **Pending configuration**. Déjalo así mientras despliegas y verificas el entorno de ejecución en los pasos 3 a 6. Lo configurarás en el paso 7.

![Lista de Partner agents con devin-modernization en estado Pending configuration](https://mintcdn.com/cognitionai-enterprise/sULjogBmcfeG3jdB/images/integrations/aws-transform/partner-agents-pending.png?fit=max\&auto=format\&n=sULjogBmcfeG3jdB\&q=85\&s=c08e8670de557c28aee6e4cd4ae1ad32)

**3. Guarda la clave de API de Devin en Secrets Manager**

Guarda la clave de API del usuario de servicio del entorno de ejecución (empieza por `cog_`) como un secreto de texto sin formato llamado `devin-atx/devin-api-key`:

```bash theme={null}
export AWS_REGION=us-east-1
read -rs DEVIN_KEY   # pega la clave y pulsa Intro
aws secretsmanager create-secret --region "$AWS_REGION" --name devin-atx/devin-api-key --secret-string "$DEVIN_KEY"
unset DEVIN_KEY
```

También puedes crearlo en la consola de Secrets Manager: elige **Other type of secret**, después **Plaintext** y pega la clave.

**4. Desplegar el límite de permisos**

Guarda la [plantilla de límite de permisos](#permissions-boundary-template) que aparece a continuación como `boundary.yaml` y despliégala. Esta plantilla crea la política `devin-atx-boundary`, que establece el máximo de lo que puede llegar a hacer cualquiera de los dos roles de entorno de ejecución. Su parámetro `MarketplaceImageRepository` recibe el ARN del repositorio que figura en tu página de aprovisionamiento, y el límite solo permite extraer imágenes de ese repositorio.

```bash theme={null}
aws cloudformation deploy --region "$AWS_REGION" \
  --stack-name devin-atx-boundary \
  --template-file boundary.yaml \
  --capabilities CAPABILITY_NAMED_IAM \
  --parameter-overrides MarketplaceImageRepository="$MARKETPLACE_REPO_ARN"
```

**5. Desplegar el entorno de ejecución**

Guarda la [plantilla de entorno de ejecución](#runtime-template) que aparece más abajo como `runtime.yaml`. Crea un conjunto de cambios, revísalo y, a continuación, ejecútalo:

```bash theme={null}
aws cloudformation deploy --region "$AWS_REGION" \
  --stack-name devin-atx-runtime \
  --template-file runtime.yaml \
  --capabilities CAPABILITY_NAMED_IAM \
  --no-execute-changeset \
  --parameter-overrides \
    ImageUri="$IMAGE_URI" \
    DevinOrgId="<devin-org-id>" \
    DevinTargetRepos="<owner/repo,owner/other-repo>"
# Revisa el conjunto de cambios que se muestra y luego ejecuta:
aws cloudformation execute-change-set --region "$AWS_REGION" \
  --change-set-name <change-set-arn-from-output>
aws cloudformation wait stack-create-complete --region "$AWS_REGION" \
  --stack-name devin-atx-runtime
```

| Parámetro | Obligatorio | Valor |
| - | - | - |
| `ImageUri` | Sí | El URI versionado de la imagen que aparece en tu página de suministro de Marketplace |
| `DevinOrgId` | Sí | El ID de tu organización de Devin |
| `DevinTargetRepos` | Recomendado | Lista de `owner/repo` separada por comas en los que Devin puede abrir pull requests. Si se deja vacía, se permite cualquier repositorio conectado |
| `DevinPlaybookId` | No | Un manual de procedimientos de Devin que se adjuntará a cada sesión |
| `DevinApiBaseUrl` | Solo Enterprise | La URL base de tu API de Devin. Si se deja vacía, se usa `https://api.devin.ai` |
| `DevinWebUrl` | Solo Enterprise | La URL de tu web app de Devin, que se usa en los enlaces de sesión. Si se deja vacía, se usa `https://app.devin.ai` |
| `DevinApiKeySecretName` | No | El valor predeterminado es `devin-atx/devin-api-key`. Debe empezar por `devin-atx/`, el único prefijo que permite el límite de permisos |
| `BoundaryPolicyName` | No | El valor predeterminado es `devin-atx-boundary` |

La pila crea el entorno de ejecución de AgentCore `devin_atx_orchestrator`, su rol de ejecución `devin-atx-agentcore-execution` y el rol de invocación de AWS Transform `devin-atx-transform-invoke`. Consulta en las salidas de la pila los dos ARN que necesitarás a continuación:

```bash theme={null}
aws cloudformation describe-stacks --region "$AWS_REGION" \
  --stack-name devin-atx-runtime \
  --query "Stacks[0].Outputs[?OutputKey=='RuntimeArn' || OutputKey=='InvokeRoleArn']" \
  --output table
```

**6. Verificar el entorno de ejecución**

Invoca la autocomprobación del entorno de ejecución. Esta lee la clave de Devin desde Secrets Manager y realiza una única llamada de solo lectura a la API de Devin:

```bash theme={null}
aws bedrock-agentcore invoke-agent-runtime --region "$AWS_REGION" \
  --agent-runtime-arn "<RuntimeArn>" \
  --qualifier DEFAULT \
  --runtime-session-id "$(uuidgen | tr -d -)selfcheck" \
  --content-type application/json --accept application/json \
  --cli-binary-format raw-in-base64-out \
  --payload '{"jsonrpc":"2.0","id":"selfcheck","method":"devin_atx/selfcheck","params":{}}' \
  selfcheck.json
cat selfcheck.json
```

Un entorno de ejecución en buen estado devuelve `"ok": true` con `"devinKey": "pass"` y `"devinApi": "pass"`. Si alguna de las comprobaciones falla, consulta [Solución de problemas](#troubleshooting).

**7. Configurar el agente del socio en AWS Transform**

Vuelve a **Partner agents**, selecciona **devin-modernization** (aún en estado **Pending configuration**) y elige **Configure**. Introduce:

* **Agent Version:** la versión del paso 1
* **Runtime ARN:** la salida `RuntimeArn` de la pila
* **Role ARN:** la salida `InvokeRoleArn` de la pila

Elige **Update**.

![Formulario de configuración del agente con Agent Version, Runtime ARN y Role ARN](https://mintcdn.com/cognitionai-enterprise/sULjogBmcfeG3jdB/images/integrations/aws-transform/configure-agent.png?fit=max\&auto=format\&n=sULjogBmcfeG3jdB\&q=85\&s=9ad471c47656b0a7bd7514a5e841b4ac)

El estado cambia a **Enabled**.

![Lista de Partner agents con devin-modernization en estado Enabled](https://mintcdn.com/cognitionai-enterprise/sULjogBmcfeG3jdB/images/integrations/aws-transform/partner-agents-enabled.png?fit=max\&auto=format\&n=sULjogBmcfeG3jdB\&q=85\&s=ac5eac3951ac720f8ef7ab5ae7be4138)

![Detalles del agente devin-modernization con la versión, el ARN del entorno de ejecución y el ARN del rol](https://mintcdn.com/cognitionai-enterprise/sULjogBmcfeG3jdB/images/integrations/aws-transform/agent-details-enabled.png?fit=max\&auto=format\&n=sULjogBmcfeG3jdB\&q=85\&s=40ecc2e0fbc3bf0cb474738e14b16c40)

**8. Iniciar un job**

Crea un job de AWS Transform y selecciona **Devin: build, test, deploy**. Proporciona los artefactos de modernización y el repositorio conectado y, a continuación, comenta el ámbito en el chat del job. Revisa el plan y cada pull request a través de las tareas de revisión del job.

## Actualización y mantenimiento

* **Nueva versión:** vuelve a desplegar la pila del entorno de ejecución con el nuevo `ImageUri`, ejecuta la autocomprobación y, después, establece la nueva **Agent Version** en **Configure**.
* **Rotación de claves:** pega la nueva clave en el secreto desde la consola de Secrets Manager, o ejecuta los comandos del paso 3 con `put-secret-value --secret-id` en lugar de `create-secret --name`. Después, vuelve a ejecutar la autocomprobación.
* **Repositorios permitidos:** vuelve a desplegar la pila del entorno de ejecución con un nuevo valor de `DevinTargetRepos`.
* **Desinstalación:** en AWS Transform, elige **Disable** en el agente asociado y, a continuación, elimina la pila `devin-atx-runtime`, la pila del límite de permisos (o la pila de la política del instalador, si la instaló Devin) y el secreto.

## Solución de problemas

| Síntoma | Causa probable |
| - | - |
| **devin-modernization** no aparece en Partner agents | La cuenta aún no está en la lista de permitidos o te encuentras en otra región. [Contáctanos](https://devin.ai/contact) e indica el ID de tu cuenta. |
| La pila falla en la regla `SupportedRegion` | La región no es compatible. Usa `us-east-1`. |
| La pila falla al crear un rol con un error de límite de permisos | Despliega primero la pila de límite de permisos, en la misma cuenta y región. |
| El entorno de ejecución no se inicia o no puede descargar la imagen | La suscripción de Marketplace no está activa, o `ImageUri` y `MarketplaceImageRepository` no coinciden con la imagen de tu página de aprovisionamiento. |
| La autocomprobación `devinKey` falla | Falta el secreto, está vacío o no es texto sin formato, o `DevinApiKeySecretName` no coincide. |
| La autocomprobación `devinKey` falla con un error `AccessDenied` de KMS | El secreto está cifrado con una clave de KMS gestionada por el cliente y el rol de ejecución no tiene permiso para descifrar con ella. Usa la clave de Secrets Manager gestionada por AWS. |
| La autocomprobación `devinApi` devuelve 403 | A la clave del usuario de servicio le falta el permiso **ViewOrgSessions**. |
| La autocomprobación `devinApi` devuelve 404 o un error de conexión | El valor de `DevinApiBaseUrl` es incorrecto para un host de empresa, o no hay conexión HTTPS saliente. |
| Las llamadas posteriores a AWS Transform devuelven `TerminalResourceException` | La sesión de Devin del job ha finalizado. Inicia un nuevo job. |

Los registros del entorno de ejecución están en CloudWatch, en `/aws/bedrock-agentcore/runtimes/<runtime-id>-DEFAULT`. Si contactas con Cognition, incluye los RequestIds de AWS y la hora del fallo. Nunca incluyas claves de API ni tokens de OIDC.

## Plantillas

### Plantilla de límite de permisos

> [accordion] boundary.yaml
>
> ```yaml theme={null}
> AWSTemplateFormatVersion: '2010-09-09'
> Description: Permissions boundary for the Devin for AWS Transform AgentCore execution and Transform invocation roles.
> Parameters:
>   MarketplaceImageRepository:
>     Type: String
>     AllowedPattern: 'arn:aws[a-z-]*:ecr:[a-z0-9-]+:[0-9]{12}:repository/.+'
>     Description: ECR repository ARN of the image on your AWS Marketplace fulfillment page.
>   ResourcePrefix:
>     Type: String
>     Default: devin-atx
>     AllowedPattern: '[a-z][a-z0-9-]{2,20}'
>     Description: Prefix for every stack, role, repository and secret Devin manages.
>   RuntimeName:
>     Type: String
>     Default: devin_atx_orchestrator
>     AllowedPattern: '[a-zA-Z][a-zA-Z0-9_]{0,47}'
>     Description: AgentRuntimeName of the orchestrator in runtime.yaml.
> Resources:
>   RoleBoundary:
>     Type: AWS::IAM::ManagedPolicy
>     Metadata:
>       cfn-lint:
>         config:
>           ignore_checks: [W3037]  # transform-agents/transform-registry aún no son prefijos públicos de IAM
>     Properties:
>       ManagedPolicyName: !Sub ${ResourcePrefix}-boundary
>       Description: Maximum permissions for the AgentCore execution and Transform invocation roles Devin creates.
>       PolicyDocument:
>         Version: '2012-10-17'
>         Statement:
>           - Sid: EcrPull
>             Effect: Allow
>             Action: [ecr:BatchGetImage, ecr:GetDownloadUrlForLayer]
>             Resource:
>               - !Sub arn:${AWS::Partition}:ecr:${AWS::Region}:${AWS::AccountId}:repository/${ResourcePrefix}/*
>               - !Ref MarketplaceImageRepository
>           - Sid: EcrToken
>             Effect: Allow
>             Action: ecr:GetAuthorizationToken
>             Resource: '*'
>           - Sid: RuntimeLogs
>             Effect: Allow
>             Action: [logs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents, logs:DescribeLogStreams]
>             Resource:
>               - !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/runtimes/*
>               - !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/runtimes/*:log-stream:*
>           - Sid: DescribeLogGroups
>             Effect: Allow
>             Action: logs:DescribeLogGroups
>             Resource: !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:*
>           - Sid: Tracing
>             Effect: Allow
>             Action: [xray:PutTraceSegments, xray:PutTelemetryRecords, xray:GetSamplingRules, xray:GetSamplingTargets]
>             Resource: '*'
>           - Sid: Metrics
>             Effect: Allow
>             Action: cloudwatch:PutMetricData
>             Resource: '*'
>             Condition:
>               StringEquals:
>                 cloudwatch:namespace: bedrock-agentcore
>           - Sid: GetAgentAccessToken
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:GetWorkloadAccessToken
>               - bedrock-agentcore:GetWorkloadAccessTokenForJWT
>               - bedrock-agentcore:GetWorkloadAccessTokenForUserId
>             Resource:
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default/workload-identity/*
>           - Sid: OrchestratorRuntime
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:InvokeAgentRuntime
>               - bedrock-agentcore:GetAgentRuntime
>               - bedrock-agentcore:GetAgentRuntimeEndpoint
>               - bedrock-agentcore:StopRuntimeSession
>             Resource:
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:runtime/${RuntimeName}-*
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:runtime/${RuntimeName}-*/runtime-endpoint/*
>           - Sid: AgentCoreRuntimeDiscovery
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:ListAgentRuntimeEndpoints
>               - bedrock-agentcore:ListAgentRuntimeVersions
>               - bedrock-agentcore:ListAgentRuntimes
>             Resource: '*'
>           - Sid: DevinKey
>             Effect: Allow
>             Action: secretsmanager:GetSecretValue
>             Resource: !Sub arn:${AWS::Partition}:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:${ResourcePrefix}/*
>           - Sid: TransformApis
>             Effect: Allow
>             Action:
>               - transform-agents:ListJobPlanSteps
>               - transform-agents:PutJobPlan
>               - transform-agents:UpdateJobPlanStep
>               - transform-agents:CreateWorklog
>               - transform-agents:SendMessage
>               - transform-agents:ListArtifacts
>               - transform-agents:CreateArtifactUploadUrl
>               - transform-agents:GetArtifactMetadata
>               - transform-agents:CompleteArtifactUpload
>               - transform-agents:CreateArtifactDownloadUrl
>               - transform-agents:GetJob
>               - transform-agents:UpdateJobStatus
>               - transform-agents:CreateHitlTask
>               - transform-agents:StartHitlTask
>               - transform-agents:GetHitlTask
>               - transform-agents:CloseHitlTask
>               - transform-agents:GetAgentInstance
>               - transform-agents:UpdateAgentInstance
>               - transform-agents:RefreshAuthToken
>             Resource: '*'
> Outputs:
>   BoundaryPolicyArn:
>     Value: !Ref RoleBoundary
> ```

### Plantilla de entorno de ejecución

> [accordion] runtime.yaml
>
> ```yaml theme={null}
> AWSTemplateFormatVersion: '2010-09-09'
> Description: AgentCore runtime and AWS Transform invocation roles for the Devin orchestrator.
> Parameters:
>   ResourcePrefix:
>     Type: String
>     Default: devin-atx
>   ImageUri:
>     Type: String
>     Description: Versioned image URI from your AWS Marketplace fulfillment page.
>   DevinOrgId:
>     Type: String
>   DevinTargetRepos:
>     Type: String
>     Default: ''
>   DevinPlaybookId:
>     Type: String
>     Default: ''
>   DevinApiBaseUrl:
>     Type: String
>     Default: ''
>   DevinWebUrl:
>     Type: String
>     Default: ''
>   DevinApiKeySecretName:
>     Type: String
>     Default: devin-atx/devin-api-key
>   BoundaryPolicyName:
>     Type: String
>     Default: devin-atx-boundary
> Mappings:
>   TransformRegions:
>     us-east-1:
>       ServicePrincipal: prod.us-east-1.compute.elastic-gumby.aws.internal
> Rules:
>   SupportedRegion:
>     Assertions:
>       - Assert:
>           Fn::Contains:
>             - [us-east-1]
>             - !Ref AWS::Region
>         AssertDescription: Choose a supported region listed in Mappings.TransformRegions.
> Resources:
>   AgentCoreExecutionRole:
>     Type: AWS::IAM::Role
>     Metadata:
>       cfn-lint:
>         config:
>           ignore_checks: [W3037] # transform-agents aún no es un prefijo de IAM público
>     Properties:
>       RoleName: !Sub ${ResourcePrefix}-agentcore-execution
>       PermissionsBoundary: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${BoundaryPolicyName}
>       AssumeRolePolicyDocument:
>         Version: '2012-10-17'
>         Statement:
>           - Effect: Allow
>             Principal:
>               Service: bedrock-agentcore.amazonaws.com
>             Action: sts:AssumeRole
>             Condition:
>               StringEquals:
>                 aws:SourceAccount: !Ref AWS::AccountId
>       Policies:
>         - PolicyName: AgentCoreExecutionPolicy
>           PolicyDocument:
>             Version: '2012-10-17'
>             Statement:
>               - Sid: ECRImageAccess
>                 Effect: Allow
>                 Action: [ecr:BatchGetImage, ecr:GetDownloadUrlForLayer]
>                 Resource: !Sub arn:${AWS::Partition}:ecr:${AWS::Region}:${AWS::AccountId}:repository/${ResourcePrefix}/*
>               - Sid: MarketplaceImageAccess
>                 Effect: Allow
>                 Action: [ecr:BatchGetImage, ecr:GetDownloadUrlForLayer]
>                 Resource: !Sub
>                   - arn:${AWS::Partition}:ecr:${ImageRegion}:${ImageAccount}:repository/${ImageRepository}
>                   - ImageAccount: !Select [0, !Split ['.', !Select [0, !Split ['/', !Ref ImageUri]]]]
>                     ImageRegion: !Select [3, !Split ['.', !Select [0, !Split ['/', !Ref ImageUri]]]]
>                     ImageRepository: !Select [0, !Split [':', !Select [0, !Split ['@', !Select [1, !Split ['.amazonaws.com/', !Ref ImageUri]]]]]]
>               - Sid: RuntimeLogs
>                 Effect: Allow
>                 Action: [logs:DescribeLogStreams, logs:CreateLogGroup]
>                 Resource: !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/runtimes/*
>               - Sid: DescribeLogGroups
>                 Effect: Allow
>                 Action: logs:DescribeLogGroups
>                 Resource: !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:*
>               - Sid: WriteRuntimeLogs
>                 Effect: Allow
>                 Action: [logs:CreateLogStream, logs:PutLogEvents]
>                 Resource: !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/runtimes/*:log-stream:*
>               - Sid: ECRTokenAccess
>                 Effect: Allow
>                 Action: ecr:GetAuthorizationToken
>                 Resource: '*'
>               - Sid: Tracing
>                 Effect: Allow
>                 Action:
>                   - xray:PutTraceSegments
>                   - xray:PutTelemetryRecords
>                   - xray:GetSamplingRules
>                   - xray:GetSamplingTargets
>                 Resource: '*'
>               - Sid: RuntimeMetrics
>                 Effect: Allow
>                 Action: cloudwatch:PutMetricData
>                 Resource: '*'
>                 Condition:
>                   StringEquals:
>                     cloudwatch:namespace: bedrock-agentcore
>               - Sid: GetAgentAccessToken
>                 Effect: Allow
>                 Action:
>                   - bedrock-agentcore:GetWorkloadAccessToken
>                   - bedrock-agentcore:GetWorkloadAccessTokenForJWT
>                   - bedrock-agentcore:GetWorkloadAccessTokenForUserId
>                 Resource:
>                   - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default
>                   - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default/workload-identity/*
>               - Sid: DevinKey
>                 Effect: Allow
>                 Action: secretsmanager:GetSecretValue
>                 Resource: !Sub arn:${AWS::Partition}:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:${DevinApiKeySecretName}-*
>               - Sid: TransformAgentsApiPolicy
>                 Effect: Allow
>                 Action: transform-agents:*
>                 Resource: '*'
>   AgentCoreRuntime:
>     Type: AWS::BedrockAgentCore::Runtime
>     Properties:
>       AgentRuntimeName: devin_atx_orchestrator
>       AgentRuntimeArtifact:
>         ContainerConfiguration:
>           ContainerUri: !Ref ImageUri
>       RoleArn: !GetAtt AgentCoreExecutionRole.Arn
>       NetworkConfiguration:
>         NetworkMode: PUBLIC
>       ProtocolConfiguration: HTTP
>       EnvironmentVariables:
>         STAGE: prod
>         REGION: !Ref AWS::Region
>         DEVIN_ORG_ID: !Ref DevinOrgId
>         DEVIN_API_KEY_SECRET_ID: !Ref DevinApiKeySecretName
>         DEVIN_TARGET_REPOS: !Ref DevinTargetRepos
>         DEVIN_PLAYBOOK_ID: !Ref DevinPlaybookId
>         DEVIN_API_BASE_URL: !Ref DevinApiBaseUrl
>         DEVIN_WEB_URL: !Ref DevinWebUrl
>         USE_EXTERNAL_AGENTIC_API: 'true'
>   TransformInvokeRole:
>     Type: AWS::IAM::Role
>     Properties:
>       RoleName: !Sub ${ResourcePrefix}-transform-invoke
>       PermissionsBoundary: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${BoundaryPolicyName}
>       AssumeRolePolicyDocument:
>         Version: '2012-10-17'
>         Statement:
>           - Effect: Allow
>             Principal:
>               Service: !FindInMap [TransformRegions, !Ref AWS::Region, ServicePrincipal]
>             Action: sts:AssumeRole
>       Policies:
>         - PolicyName: AWSTransform-BedrockAgentRuntimePolicy
>           PolicyDocument:
>             Version: '2012-10-17'
>             Statement:
>               - Sid: AWSTransformAgentCoreRuntimePermissions
>                 Effect: Allow
>                 Action:
>                   - bedrock-agentcore:GetAgentRuntime
>                   - bedrock-agentcore:GetAgentRuntimeEndpoint
>                   - bedrock-agentcore:InvokeAgentRuntime
>                   - bedrock-agentcore:ListAgentRuntimeEndpoints
>                   - bedrock-agentcore:ListAgentRuntimeVersions
>                   - bedrock-agentcore:ListAgentRuntimes
>                   - bedrock-agentcore:StopRuntimeSession
>                 Resource:
>                   - !GetAtt AgentCoreRuntime.AgentRuntimeArn
>                   - !Sub ${AgentCoreRuntime.AgentRuntimeArn}/*
> Outputs:
>   RuntimeArn:
>     Value: !GetAtt AgentCoreRuntime.AgentRuntimeArn
>   ExecutionRoleArn:
>     Value: !GetAtt AgentCoreExecutionRole.Arn
>   InvokeRoleArn:
>     Value: !GetAtt TransformInvokeRole.Arn
> ```

## Opcional: deja que Devin lo instale

Una sesión de Devin puede ejecutar la instalación por ti, mostrándote cada conjunto de cambios y esperando tu aprobación. Utiliza federación OIDC sin claves: AWS confía en los tokens de tu organización de Devin, pero solo para un usuario de servicio dedicado a la instalación.

1. Crea un segundo usuario de servicio de Devin para la instalación (distinto del usuario de servicio del entorno de ejecución). Anota su ID `service-user-…`.
2. Despliega la [plantilla de confianza OIDC](#oidc-trust-template) con tu `DevinOrgId`, el `DevinDeployServiceUserId` del instalador y `DevinIssuerHost` (`app.devin.ai` o el host de tu empresa). Crea el rol `devin-aws-transform-agent`, sin permisos.
3. Despliega la [plantilla de políticas del instalador](#installer-policy-template) **en lugar de** la plantilla de límites. Pasa el mismo `MarketplaceImageRepository` que en el paso 4. Crea el mismo `devin-atx-boundary` y, además, dos políticas de instalador de alcance limitado adjuntas a ese rol.
4. En una sesión iniciada como el usuario de servicio instalador, pide a Devin que configure Devin for AWS Transform en tu cuenta y región de AWS, y proporciónale el URI de tu imagen y el ARN del repositorio que aparecen en la página de aprovisionamiento. Aun así, tendrás que solicitar tú mismo la inclusión en la lista de permitidos y configurar el agente asociado.

### Plantilla de confianza OIDC

> [accordion] devin-oidc.yaml
>
> ```yaml theme={null}
> AWSTemplateFormatVersion: '2010-09-09'
> Description: Keyless Devin access for an AWS Transform account; no deployment permissions granted.
> Parameters:
>   DevinOrgId:
>     Type: String
>     AllowedPattern: '[A-Za-z0-9-]+'
>     Description: Exact org_id claim from a Devin token, not the account or enterprise ID.
>   DevinDeployServiceUserId:
>     Type: String
>     AllowedPattern: 'service-user-[A-Za-z0-9]+'
>     Description: service_user_id claim of the dedicated Devin service user allowed to deploy; sessions must request the token with subject-keys "org_id service_user_id"; sessions started by humans or other service users do not match.
>   DevinIssuerHost:
>     Type: String
>     AllowedPattern: '[a-z0-9.-]+'
>     Description: "Devin webapp host that issues the OIDC token: app.devin.ai or your enterprise host."
>   RoleName:
>     Type: String
>     Default: devin-aws-transform-agent
>     AllowedPattern: '[A-Za-z0-9+=,.@_-]+'
>     MaxLength: 64
>   CreateOidcProvider:
>     Type: String
>     Default: 'true'
>     AllowedValues: ['true', 'false']
>     Description: Set false if this account already has a provider for the configured issuer with the STS audience.
> Conditions:
>   CreateProvider: !Equals [!Ref CreateOidcProvider, 'true']
> Resources:
>   DevinOidcProvider:
>     Type: AWS::IAM::OIDCProvider
>     Condition: CreateProvider
>     Properties:
>       Url: !Sub https://${DevinIssuerHost}
>       ClientIdList: [sts.amazonaws.com]
>       Tags:
>         - Key: Project
>           Value: devin-aws-transform-agent
>   DevinRole:
>     Type: AWS::IAM::Role
>     Properties:
>       RoleName: !Ref RoleName
>       Description: Devin OIDC role trusted only to the configured org_id and service_user_id; an administrator must separately attach reviewed deployment permissions.
>       MaxSessionDuration: 3600
>       AssumeRolePolicyDocument: !Sub
>         - |
>           {
>             "Version": "2012-10-17",
>             "Statement": [
>               {
>                 "Effect": "Allow",
>                 "Principal": {
>                   "Federated": "${ProviderArn}"
>                 },
>                 "Action": "sts:AssumeRoleWithWebIdentity",
>                 "Condition": {
>                   "StringEquals": {
>                     "${DevinIssuerHost}:aud": "sts.amazonaws.com",
>                     "${DevinIssuerHost}:sub": "org_id:${DevinOrgId}:service_user_id:${DevinDeployServiceUserId}"
>                   }
>                 }
>               }
>             ]
>           }
>         - ProviderArn: !If
>             - CreateProvider
>             - !Ref DevinOidcProvider
>             - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:oidc-provider/${DevinIssuerHost}
>       Tags:
>         - Key: Project
>           Value: devin-aws-transform-agent
> Outputs:
>   DevinRoleArn:
>     Value: !GetAtt DevinRole.Arn
>   OidcProviderArn:
>     Value: !If
>       - CreateProvider
>       - !Ref DevinOidcProvider
>       - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:oidc-provider/${DevinIssuerHost}
> ```

### Plantilla de política para el instalador

> [accordion] devin-deploy-policy.yaml
>
> ```yaml theme={null}
> AWSTemplateFormatVersion: '2010-09-09'
> Description: >-
>   Installer permissions for the Devin OIDC role.
>   Scoped to the named orchestrator runtime, two bounded roles, devin-atx-* resources, and
>   selected AWS Transform registry and API actions. An administrator deploys this once,
>   after reviewing it.
> Parameters:
>   MarketplaceImageRepository:
>     Type: String
>     AllowedPattern: 'arn:aws[a-z-]*:ecr:[a-z0-9-]+:[0-9]{12}:repository/.+'
>     Description: ECR repository ARN of the image on your AWS Marketplace fulfillment page.
>   DevinRoleName:
>     Type: String
>     Default: devin-aws-transform-agent
>     AllowedPattern: '[A-Za-z0-9+=,.@_-]+'
>     Description: Name of the role created by devin-oidc.yaml.
>   ResourcePrefix:
>     Type: String
>     Default: devin-atx
>     AllowedPattern: '[a-z][a-z0-9-]{2,20}'
>     Description: Prefix for every stack, role, repository and secret Devin manages.
>   RuntimeName:
>     Type: String
>     Default: devin_atx_orchestrator
>     AllowedPattern: '[a-zA-Z][a-zA-Z0-9_]{0,47}'
>     Description: AgentRuntimeName of the orchestrator in runtime.yaml.
> Resources:
>   RoleBoundary:
>     Type: AWS::IAM::ManagedPolicy
>     Metadata:
>       cfn-lint:
>         config:
>           ignore_checks: [W3037]  # transform-agents/transform-registry aún no son prefijos públicos de IAM
>     Properties:
>       ManagedPolicyName: !Sub ${ResourcePrefix}-boundary
>       Description: Maximum permissions for the AgentCore execution and Transform invocation roles Devin creates.
>       PolicyDocument:
>         Version: '2012-10-17'
>         Statement:
>           - Sid: EcrPull
>             Effect: Allow
>             Action: [ecr:BatchGetImage, ecr:GetDownloadUrlForLayer]
>             Resource:
>               - !Sub arn:${AWS::Partition}:ecr:${AWS::Region}:${AWS::AccountId}:repository/${ResourcePrefix}/*
>               - !Ref MarketplaceImageRepository
>           - Sid: EcrToken
>             Effect: Allow
>             Action: ecr:GetAuthorizationToken
>             Resource: '*'
>           - Sid: RuntimeLogs
>             Effect: Allow
>             Action: [logs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents, logs:DescribeLogStreams]
>             Resource:
>               - !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/runtimes/*
>               - !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/runtimes/*:log-stream:*
>           - Sid: DescribeLogGroups
>             Effect: Allow
>             Action: logs:DescribeLogGroups
>             Resource: !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:*
>           - Sid: Tracing
>             Effect: Allow
>             Action: [xray:PutTraceSegments, xray:PutTelemetryRecords, xray:GetSamplingRules, xray:GetSamplingTargets]
>             Resource: '*'
>           - Sid: Metrics
>             Effect: Allow
>             Action: cloudwatch:PutMetricData
>             Resource: '*'
>             Condition:
>               StringEquals:
>                 cloudwatch:namespace: bedrock-agentcore
>           - Sid: GetAgentAccessToken
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:GetWorkloadAccessToken
>               - bedrock-agentcore:GetWorkloadAccessTokenForJWT
>               - bedrock-agentcore:GetWorkloadAccessTokenForUserId
>             Resource:
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default/workload-identity/*
>           - Sid: OrchestratorRuntime
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:InvokeAgentRuntime
>               - bedrock-agentcore:GetAgentRuntime
>               - bedrock-agentcore:GetAgentRuntimeEndpoint
>               - bedrock-agentcore:StopRuntimeSession
>             Resource:
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:runtime/${RuntimeName}-*
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:runtime/${RuntimeName}-*/runtime-endpoint/*
>           - Sid: AgentCoreRuntimeDiscovery
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:ListAgentRuntimeEndpoints
>               - bedrock-agentcore:ListAgentRuntimeVersions
>               - bedrock-agentcore:ListAgentRuntimes
>             Resource: '*'
>           - Sid: DevinKey
>             Effect: Allow
>             Action: secretsmanager:GetSecretValue
>             Resource: !Sub arn:${AWS::Partition}:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:${ResourcePrefix}/*
>           - Sid: TransformApis
>             Effect: Allow
>             Action:
>               - transform-agents:ListJobPlanSteps
>               - transform-agents:PutJobPlan
>               - transform-agents:UpdateJobPlanStep
>               - transform-agents:CreateWorklog
>               - transform-agents:SendMessage
>               - transform-agents:ListArtifacts
>               - transform-agents:CreateArtifactUploadUrl
>               - transform-agents:GetArtifactMetadata
>               - transform-agents:CompleteArtifactUpload
>               - transform-agents:CreateArtifactDownloadUrl
>               - transform-agents:GetJob
>               - transform-agents:UpdateJobStatus
>               - transform-agents:CreateHitlTask
>               - transform-agents:StartHitlTask
>               - transform-agents:GetHitlTask
>               - transform-agents:CloseHitlTask
>               - transform-agents:GetAgentInstance
>               - transform-agents:UpdateAgentInstance
>               - transform-agents:RefreshAuthToken
>             Resource: '*'
>   DeployPolicy:
>     Type: AWS::IAM::ManagedPolicy
>     Metadata:
>       cfn-lint:
>         config:
>           ignore_checks: [W3037]  # transform-agents/transform-registry aún no son prefijos públicos de IAM
>     Properties:
>       ManagedPolicyName: !Sub ${ResourcePrefix}-devin-deploy
>       Description: Lets Devin build, deploy, register and debug the AWS Transform orchestrator.
>       Roles: [!Ref DevinRoleName]
>       PolicyDocument:
>         Version: '2012-10-17'
>         Statement:
>           - Sid: CloudFormationStacks
>             Effect: Allow
>             Action:
>               - cloudformation:CreateStack
>               - cloudformation:UpdateStack
>               - cloudformation:DeleteStack
>               - cloudformation:CreateChangeSet
>               - cloudformation:DescribeChangeSet
>               - cloudformation:ExecuteChangeSet
>               - cloudformation:DeleteChangeSet
>               - cloudformation:ListChangeSets
>               - cloudformation:DescribeStacks
>               - cloudformation:DescribeStackEvents
>               - cloudformation:DescribeStackResources
>               - cloudformation:GetTemplate
>             Resource: !Sub arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/${ResourcePrefix}-*/*
>           - Sid: CloudFormationRead
>             Effect: Allow
>             Action: [cloudformation:ListStacks, cloudformation:ValidateTemplate, cloudformation:GetTemplateSummary]
>             Resource: '*'
>           - Sid: EcrToken
>             Effect: Allow
>             Action: ecr:GetAuthorizationToken
>             Resource: '*'
>           - Sid: EcrRepositories
>             Effect: Allow
>             Action:
>               - ecr:CreateRepository
>               - ecr:DeleteRepository
>               - ecr:DescribeRepositories
>               - ecr:DescribeImages
>               - ecr:ListImages
>               - ecr:BatchGetImage
>               - ecr:BatchCheckLayerAvailability
>               - ecr:GetDownloadUrlForLayer
>               - ecr:InitiateLayerUpload
>               - ecr:UploadLayerPart
>               - ecr:CompleteLayerUpload
>               - ecr:PutImage
>               - ecr:BatchDeleteImage
>               - ecr:PutLifecyclePolicy
>               - ecr:PutImageScanningConfiguration
>               - ecr:TagResource
>               - ecr:UntagResource
>               - ecr:ListTagsForResource
>             Resource: !Sub arn:${AWS::Partition}:ecr:${AWS::Region}:${AWS::AccountId}:repository/${ResourcePrefix}/*
>           - Sid: CreateBoundedRoles
>             Effect: Allow
>             Action: [iam:CreateRole, iam:PutRolePolicy, iam:AttachRolePolicy, iam:DetachRolePolicy]
>             Resource:
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ResourcePrefix}-agentcore-execution
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ResourcePrefix}-transform-invoke
>             Condition:
>               StringEquals:
>                 iam:PermissionsBoundary: !Ref RoleBoundary
>           - Sid: ManageOwnRoles
>             Effect: Allow
>             Action:
>               - iam:GetRole
>               - iam:GetRolePolicy
>               - iam:ListRolePolicies
>               - iam:ListAttachedRolePolicies
>               - iam:DeleteRole
>               - iam:DeleteRolePolicy
>               - iam:UpdateRole
>               - iam:TagRole
>               - iam:UntagRole
>             Resource:
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ResourcePrefix}-agentcore-execution
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ResourcePrefix}-transform-invoke
>           - Sid: PassExecutionRoleToAgentCore
>             Effect: Allow
>             Action: iam:PassRole
>             Resource: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ResourcePrefix}-agentcore-execution
>             Condition:
>               StringEquals:
>                 iam:PassedToService: bedrock-agentcore.amazonaws.com
>           - Sid: ReadPolicies
>             Effect: Allow
>             Action: [iam:GetPolicy, iam:GetPolicyVersion, iam:SimulatePrincipalPolicy]
>             Resource:
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${ResourcePrefix}-*
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${ResourcePrefix}-*
>           - Sid: DevinKeySecret
>             Effect: Allow
>             Action:
>               - secretsmanager:CreateSecret
>               - secretsmanager:DeleteSecret
>               - secretsmanager:DescribeSecret
>               - secretsmanager:PutSecretValue
>               - secretsmanager:UpdateSecret
>               - secretsmanager:TagResource
>               - secretsmanager:UntagResource
>             Resource: !Sub arn:${AWS::Partition}:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:${ResourcePrefix}/*
>           - Sid: RuntimeLogsRead
>             Effect: Allow
>             Action: [logs:DescribeLogStreams, logs:GetLogEvents, logs:FilterLogEvents, logs:StartQuery]
>             Resource: !Sub arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/bedrock-agentcore/*
>           - Sid: LogsDiscovery
>             Effect: Allow
>             Action: [logs:DescribeLogGroups, logs:GetQueryResults]
>             Resource: '*'
>           - Sid: NoBoundaryOrTrustChanges
>             Effect: Deny
>             Action:
>               - iam:DeleteRolePermissionsBoundary
>               - iam:PutRolePermissionsBoundary
>               - iam:UpdateAssumeRolePolicy
>             Resource: '*'
>           - Sid: NoPolicyTampering
>             Effect: Deny
>             Action:
>               - iam:CreatePolicyVersion
>               - iam:DeletePolicy
>               - iam:DeletePolicyVersion
>               - iam:SetDefaultPolicyVersion
>             Resource:
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${ResourcePrefix}-boundary
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${ResourcePrefix}-devin-deploy
>               - !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${ResourcePrefix}-devin-deploy-agentcore
>   DeployPolicyAgentCore:
>     Type: AWS::IAM::ManagedPolicy
>     Metadata:
>       cfn-lint:
>         config:
>           ignore_checks: [W3037]  # transform-agents/transform-registry todavía no son prefijos públicos de IAM
>     Properties:
>       ManagedPolicyName: !Sub ${ResourcePrefix}-devin-deploy-agentcore
>       Description: Lets Devin deploy the AgentCore runtime and call the AWS Transform APIs. Split from DeployPolicy to stay under the IAM policy size limit.
>       Roles: [!Ref DevinRoleName]
>       PolicyDocument:
>         Version: '2012-10-17'
>         Statement:
>           - Sid: AgentCoreServiceLinkedRole
>             Effect: Allow
>             Action: iam:CreateServiceLinkedRole
>             Resource: '*'
>             Condition:
>               StringLike:
>                 iam:AWSServiceName: bedrock-agentcore.amazonaws.com
>           - Sid: AgentCoreNoResourceScope
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:CreateAgentRuntime
>               - bedrock-agentcore:ListAgentRuntimes
>               - bedrock-agentcore:ListAgentRuntimeVersions
>               - bedrock-agentcore:ListAgentRuntimeEndpoints
>             Resource: '*'
>           - Sid: AgentCoreOrchestratorRuntime
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:UpdateAgentRuntime
>               - bedrock-agentcore:DeleteAgentRuntime
>               - bedrock-agentcore:GetAgentRuntime
>               - bedrock-agentcore:CreateAgentRuntimeEndpoint
>               - bedrock-agentcore:UpdateAgentRuntimeEndpoint
>               - bedrock-agentcore:DeleteAgentRuntimeEndpoint
>               - bedrock-agentcore:GetAgentRuntimeEndpoint
>               - bedrock-agentcore:InvokeAgentRuntime
>               - bedrock-agentcore:StopRuntimeSession
>               - bedrock-agentcore:TagResource
>               - bedrock-agentcore:UntagResource
>               - bedrock-agentcore:ListTagsForResource
>             Resource:
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:runtime/${RuntimeName}-*
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:runtime/${RuntimeName}-*/runtime-endpoint/*
>           - Sid: AgentCoreWorkloadIdentity
>             Effect: Allow
>             Action:
>               - bedrock-agentcore:CreateWorkloadIdentity
>               - bedrock-agentcore:GetWorkloadIdentity
>               - bedrock-agentcore:UpdateWorkloadIdentity
>               - bedrock-agentcore:DeleteWorkloadIdentity
>               - bedrock-agentcore:TagResource
>             Resource:
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default
>               - !Sub arn:${AWS::Partition}:bedrock-agentcore:${AWS::Region}:${AWS::AccountId}:workload-identity-directory/default/workload-identity/*
>           - Sid: TransformRegistry
>             Effect: Allow
>             Action:
>               - transform-registry:GetAgent
>               - transform-registry:GetAgentVersion
>               - transform-registry:RegisterAgent
>               - transform-registry:PublishAgentVersion
>               - transform-registry:UpdatePublisherAccessControl
>             Resource: '*'
>           - Sid: TransformApis
>             Effect: Allow
>             Action:
>               - transform-agents:ListJobPlanSteps
>               - transform-agents:PutJobPlan
>               - transform-agents:UpdateJobPlanStep
>               - transform-agents:CreateWorklog
>               - transform-agents:SendMessage
>               - transform-agents:ListArtifacts
>               - transform-agents:CreateArtifactUploadUrl
>               - transform-agents:GetArtifactMetadata
>               - transform-agents:CompleteArtifactUpload
>               - transform-agents:CreateArtifactDownloadUrl
>               - transform-agents:GetJob
>               - transform-agents:UpdateJobStatus
>               - transform-agents:CreateHitlTask
>               - transform-agents:StartHitlTask
>               - transform-agents:GetHitlTask
>               - transform-agents:CloseHitlTask
>               - transform-agents:GetAgentInstance
>               - transform-agents:UpdateAgentInstance
>               - transform-agents:RefreshAuthToken
>             Resource: '*'
>
> Outputs:
>   BoundaryPolicyArn:
>     Value: !Ref RoleBoundary
>   DeployPolicyArn:
>     Value: !Ref DeployPolicy
>   DeployPolicyAgentCoreArn:
>     Value: !Ref DeployPolicyAgentCore
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.