ApiGatewayV2 ResponseParameters inconsistency
まだ誰も着手していません。
評価
調査の方向性
リポジトリのファイルもテストも指定されていません。まず、失敗する YAML を使って AWS::ApiGatewayV2::Integration のデプロイを再現し、その後、ResponseParameters の検証を成功した AWS Console のペイロードと比較してください。remove:header.x-powered-by レスポンスパラメータが、コンソールと一貫して CloudFormation 経由で受け入れられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello,
The following fails to deploy with error: Properties validation failed for resource CoolIntegration with message: [#/ResponseParameters/200: extraneous key [remove:header.x-powered-by] is not permitted]
However, creating the ResponseParameters from AWS Console works. Note that the RequestParameters can be created using CloudFormation just fine.
JSON of successful ResponseParameter when created in the AWS Console
$ aws apigatewayv2 get-integration --api-id xxxxx --integration-id xxxxx --region eu-central-1 --output json --profile xxxx
{
"ConnectionId": "xxxxx",
"ConnectionType": "VPC_LINK",
"Description": "API Gateway Integration",
"IntegrationId": "xxxxx",
"IntegrationMethod": "ANY",
"IntegrationType": "HTTP_PROXY",
"IntegrationUri": "xxxxx",
"PayloadFormatVersion": "1.0",
"RequestParameters": {
"append:header.X-Service": "CoolService"
},
"ResponseParameters": {
"200": {
"remove:header.x-powered-by": "''"
}
},
"TimeoutInMillis": 30000
}
Failing YAML
CoolIntegration:
Type: AWS::ApiGatewayV2::Integration
Properties:
Description: API Gateway Integration
ApiId: !ImportValue x:y
ConnectionType: VPC_LINK
ConnectionId: !ImportValue x:y
IntegrationType: HTTP_PROXY
IntegrationMethod: ANY
IntegrationUri: !ImportValue x:y
PayloadFormatVersion: "1.0"
RequestParameters:
"append:header.X-Service": "CoolService"
ResponseParameters:
"200":
remove:header.x-powered-by: "''"
- 主要言語
- Python
- スター
- 336
- フォーク
- 173
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws-cloudformation/cloudformation-cli のほかの issue
-
docs: `--use-docker` and `--no-docker` options of `cfn submit` are missing from the documentationオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
aws-cloudformation/cloudformation-cli#1117 · コメント 1 件 · リアクション 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aws-cloudformation/cloudformation-cli#1115 · コメント 1 件 · リアクション 9 件 ·
aws-cloudformation/cloudformation-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Netcracker/qubership-ai-packages#266 ·
メンテナーはふだん 1 日以内に返信
-
PROCESSED_DATA_FOLDER: strip whitespace and treat empty as unset対応中かも @TorecLuik が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
NL-BioImaging/BIOMERO.importer#63 ·
メンテナーはふだん 1 日以内に返信
-
MLX training-complete chat/merge suggestions omit --backend mlx対応中かも @vaputa が今日担当しました。 オープンneeds-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MakazhanAlpamys/Soup#2913 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:security effort:S priority:P3 status:needs-triage type:chore
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
randomparity/kdive#3657 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/mcp-proxy-for-aws#476 ·
メンテナーはふだん 1 日以内に返信