CodeBuild project is failing to update with `* Err...
# aws
c
CodeBuild project is failing to update with
* Error creating CodeBuild project: InvalidInputException: Invalid project source: location must be a valid S3 source
The bucket is created and I've added the root prefix
/
after the id. I've confirmed that I can set this in the UI
Copy code
source=aws.codebuild.ProjectSourceArgs(
            type="S3",
            location=f"{codebuild_functional_bucket.id}/"

        ),
Fixed by changing to:
Copy code
source=aws.codebuild.ProjectSourceArgs(
            type="S3",
            location=codebuild_functional_bucket.id.apply(lambda id: f"{id}/"),

        ),
r
You should also be able to use Output.concat here for slightly cleaner code
👍 1