https://pulumi.com logo
Title
c

crooked-pillow-11944

10/05/2021, 12:13 PM
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
source=aws.codebuild.ProjectSourceArgs(
            type="S3",
            location=f"{codebuild_functional_bucket.id}/"

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

        ),
r

red-match-15116

10/05/2021, 3:34 PM
You should also be able to use Output.concat here for slightly cleaner code
👍 1