aws-samples / aws-samples/sample-agent-assisted-sdlc

fix: export gateway role ARN as a CfnOutput for cross-stack reference

Open Beginner friendly
#92 1 comment 0 reactions 0 assignees View on GitHub
agent:pr-completed
Dominant language
Python
Stars
42
Forks
9
PR merge metrics
No merged PRs in 30d

Description

## Description

Add a `CfnOutput` for the gateway role ARN in `lib/nested/gateway-stack.ts`. This enables the resource-based policies stack to reference the gateway role without importing the full construct.

## What to do

In `lib/nested/gateway-stack.ts`, add after the existing CfnOutputs (around line 71):

```typescript
new cdk.CfnOutput(this, "GatewayRoleArn", { value: this.gateway.gatewayRole.roleArn });
```

## Acceptance Criteria

- [ ] `GatewayRoleArn` CfnOutput added to the gateway stack
- [ ] `npx cdk synth --quiet` passes
- [ ] `npm test` passes
- [ ] No other files modified

## Files

```
lib/nested/gateway-stack.ts MODIFY — add one CfnOutput line
```

Contributor guide

Open the contributing guide

Research direction

Open lib/nested/gateway-stack.ts and inspect the existing CfnOutputs around line 71 and the gateway role reference. Add the specified GatewayRoleArn output, then run npx cdk synth --quiet and npm test. Done means both commands pass and only lib/nested/gateway-stack.ts is modified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.