ステップ 1
Prerequisites and API key
Install the CDK, store your API key in Secrets Manager, and bootstrap the target account.
- Install AWS CDK v2: npm install -g aws-cdk@latest
- Create an Ingestion API key in Settings → API Keys.
- Store it: aws secretsmanager create-secret --name secplatform/cloud-scanner/api-key --secret-string sp_xxxx
- Bootstrap the account+region: cdk bootstrap (once per account/region).
ステップ 2
Deploy the CDK stack
Three commands deploy Lambda + EventBridge + IAM + CloudWatch logging.
- Bootstrap the local source bundle first, then run cd deploy/aws-cloud-scanner && pip install -r requirements.txt
- Set SECPLATFORM_API_URL and SCANNER_IMAGE_URI environment variables.
- Run: cdk deploy --require-approval never
- The stack creates a 3 GB Lambda, IAM role with SecurityAudit + ViewOnlyAccess, and an EventBridge schedule.
ステップ 3
Verify and scale to multiple accounts
Trigger a manual run, confirm findings, then roll out to the entire AWS Organization.
- Trigger manually: aws lambda invoke --function-name SecPlatformCloudScanner --invocation-type Event /tmp/out.json
- Tail logs: aws logs tail /aws/lambda/SecPlatformCloudScanner --follow
- Confirm findings appear in the platform with scanner=cloud.
- For multi-account: use CloudFormation StackSets targeting your OU — see the Developer Guide.