Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(policy): deploy --enforcement-mode through CDK

オープン
#1,910 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
aws, typescript

調査の方向性

まず agentcore add policy --enforcement-mode LOG_ONLY を再現し、次に agentcore deploy を実行するか、提供された CDK プロジェクトを生成して AWS::BedrockAgentCore::Policy リソースを調べます。agentcore.json の値が固定された @aws/agentcore-cdk パッケージに到達するまでの経路を追跡します。完了の条件は、公開された construct が EnforcementMode: LOG_ONLY を出力し、CLI がその正確な依存関係を更新し、スナップショットが更新されていることです。

索引モデルが issue の本文から書いたものです。

説明

bug
Description

agentcore add policy --enforcement-mode LOG_ONLY persists the selected mode in agentcore.json, but the pinned @aws/agentcore-cdk package does not emit EnforcementMode on AWS::BedrockAgentCore::Policy. CloudFormation therefore uses the service default, ACTIVE, and a policy intended for shadow testing is enforced.

Steps to Reproduce
  1. Create an AgentCore project with a policy engine and gateway.
  2. Add a policy with --enforcement-mode LOG_ONLY.
  3. Run agentcore deploy or synthesize the vended CDK project.
  4. Inspect the AWS::BedrockAgentCore::Policy resource.
Expected Behavior

The synthesized policy contains EnforcementMode: LOG_ONLY.

Actual Behavior

EnforcementMode is omitted, so the service defaults the policy to ACTIVE.

CLI Version

0.25.0

Operating System

Linux

Additional Context

The L3 construct needs to model and synthesize per-policy enforcement mode first. After that fix is published, the CLI must bump its exact @aws/agentcore-cdk asset dependency and update snapshots.

主要言語
TypeScript
スター
291
フォーク
96
平均マージ
20時間 50分
マージ済み PR(30日)
214

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。