privacysandbox/aggregation-service

Error building AMI: VPCIdNotSpecified: No default VPC for this user

Closed this issue · 1 comments

I am trying to follow the instructions to build the AMI because I want it in a different region than us-east-1.

But when I run

aws codebuild start-build --project-name aggregation-service-artifacts-build --region us-west-2

I get this error:

Build 'amazon-ebs.sample-ami' errored after 936 milliseconds 511 microseconds: VPCIdNotSpecified: No default VPC for this user
status code: 400, request id: fffa8013-121f-4855-a665-70e36030a4e7x

Questions

  1. Is having a default VPC a prerequisite for this build to work?
  2. Is it possible to get the build to work using another VPC, or is using the defaut VPC the recommended way?

Answering my own questions:

  1. Apparently yes, it does seem to be a prerequisite to have a default VPC.
  2. No,even if you specify a vpc_config in the aws_codebuild_project, you will still eventually run into the "VPCIdNotSpecified: No default VPC for this user" error.