sparse-intern-71089
11/24/2023, 7:23 PMechoing-dinner-19531
11/24/2023, 11:31 PMbored-car-93231
11/25/2023, 8:01 PMResourceInitializationError: failed to validate logger args: create stream has been retried 7 times: failed to create Cloudwatch log stream: RequestError: send request failed caused by: Post "<https://logs.undefined.amazonaws.com/>": dial tcp: lookup <http://logs.undefined.amazonaws.com|logs.undefined.amazonaws.com> on 172.31.0.2:53: no such host : exit status 1
I've added cloudwatch log group instead of using "aws logs", hopefully this fixes the issue?
log_group = aws.cloudwatch.LogGroup("log_group")
repository = awsx.ecr.Repository("repository")
image = awsx.ecr.Image("image",
repository_url=repository.url,
context="..",
platform='linux/x86_64',
builder_version="BuilderBuildKit",
args={"BUILDKIT_INLINE_CACHE": "1"},
)
cluster = aws.ecs.Cluster("cluster")
lb = awsx.lb.ApplicationLoadBalancer("lb", default_target_group_port=8000)
service = awsx.ecs.FargateService("service",
cluster=cluster.arn,
assign_public_ip=True,
desired_count=2,
platform_version="LATEST",
task_definition_args=awsx.ecs.FargateServiceTaskDefinitionArgs(
container=awsx.ecs.TaskDefinitionContainerDefinitionArgs(
name="chainlit",
image=image.image_uri,
port_mappings=[awsx.ecs.TaskDefinitionPortMappingArgs(
target_group=lb.default_target_group,
)],
cpu=1024,
memory=4096,
essential=True,
),
log_group=log_group
))
pulumi.export("url", lb.load_balancer.dns_name)
for a separate issue, my build time for the image is very long. I will need a cache_from argument correct, and what should the value look like?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by