Skip to content

Labs show the bucket and role they rely on - #83

Merged
returnvalue merged 1 commit into
mainfrom
claude/project-thread-pep0g5
Nov 8, 2026
Merged

returnvalue merged 1 commit into
mainfrom
claude/project-thread-pep0g5

Conversation

@returnvalue

Copy link
Copy Markdown
Collaborator

Requested by Chris

Two steps used a resource that their own commands never created. A learner pasting only those commands would hit "not found". The live replay for PR #82 found both, and Chris approved adding the lines.

  • IAM account hardening, access-analyzer step: adds aws s3api create-bucket for lab-hardening-shared-reports. It also adds delete-public-access-block, because on real AWS, Block Public Access refuses the public-read policy the step puts on the bucket.
  • IAM machine identity, abac-decisions step: adds aws iam create-role for lab-identity-abac, with a trust policy that allows sts:AssumeRole and sts:TagSession, which the --tags assume-role needs.

The backend steps already created both resources, so the steps' own behaviour is unchanged.

Tests

🤖 Generated with Claude Code

The account-hardening access-analyzer step put a policy on a bucket its
commands never created (and that Block Public Access would refuse), and the
machine-identity ABAC step put a policy on a role its commands never created.
Both now show the create lines, so a learner pasting them doesn't hit not found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@returnvalue
returnvalue merged commit fafe2c6 into main Nov 8, 2026
2 checks passed
@returnvalue returnvalue mentioned this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant