Python CDK CodeFleet Association #30596
Replies: 4 comments 1 reply
-
@nmussy Here is the question I am trying to resolve |
Beta Was this translation helpful? Give feedback.
-
What is your expectation, and what is the current behavior? I also haven't tested out the Fleet construct with |
Beta Was this translation helpful? Give feedback.
-
Ah, I was testing on pipelineprojects. It does work on Project, but I was trying PipelineProjects |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
I can make a codefleet in python. However, associating a fleet to my codefleet project does not work as expected. Is there something missing:
Fleet Configuration
PipelineProject Configuration
cb_docker_build = aws_codebuild.PipelineProject(
self, "DockerBuild",
project_name=f"{props['namespace']}-Docker-Build",
build_spec=aws_codebuild.BuildSpec.from_source_filename(
filename='pipeline_delivery/docker_build_buildspec.yml'),
environment=aws_codebuild.BuildEnvironment(
fleet=fleet,
privileged=True
),
# pass the ecr repo uri into the codebuild project so codebuild knows where to push
environment_variables={
'ecr': aws_codebuild.BuildEnvironmentVariable(
value=ecr.repository_uri),
'tag': aws_codebuild.BuildEnvironmentVariable(
value='cdk')
},
description='Pipeline for CodeBuild',
timeout=Duration.minutes(60),
)
Beta Was this translation helpful? Give feedback.
All reactions