aws / aws/aws-cdk

CDK tokens not being replaced with actual values in API Gateway AwsIntegration actionParameters

Open
#7,010 6 comments 2 reactions 0 assignees View on GitHub
@aws-cdk/aws-apigateway bug effort/small p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

CDK tokens not being replaced with actual values in API Gateway AwsIntegration actionParameters

### Reproduction Steps

The below code, where props.bucket is of type `s3.IBucket` gets into CFN template, and deployment as `GetObject&Bucket=%24%7BToken%5BTOKEN.19%5D%7D&Key=index.html`

```
new apigw.AwsIntegration({
service: "s3",
action: "GetObject",
actionParameters: {
Bucket: props.bucket.bucketName,
Key: "index.html"
},
...
});
```

### Environment

- **CLI Version :** 1.31.0 (build 8f3ac79)
- **Framework Version:** 1.31.0 (build 8f3ac79)
- **OS :** MacOs
- **Language :** TypeScript

---

This is :bug: Bug Report

Contributor guide

Open the contributing guide

Research direction

Start by tracing API Gateway AwsIntegration handling of actionParameters and reproduce the reported CloudFormation output with an s3.IBucket bucketName token. Confirm the fix by checking that the generated template and deployment no longer contain the unresolved ${Token[TOKEN.19]} value and instead preserve the actual bucket reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.