This message was deleted.
# aws
s
This message was deleted.
1
j
The inputs are fine:
Copy code
pulumi.all([subnetIds.ids, taskDefinition.taskDefinition.arn, deadLetterQueue.arn])
    .apply(([subnetIds, taskDefinitionArn, deadLetterQueueArn]) => console.log([subnetIds, taskDefinitionArn, deadLetterQueueArn]))
console.log(securityGroupId)
yields
Copy code
sg-<redacted>
    [
      [ 'subnet-<redacted>', 'subnet-<redacted>' ],
      'arn:aws:ecs:us-east-2:<redacted>:task-definition/task-definition-<redacted>:3',
      'arn:aws:sqs:us-east-2:<redacted>:<redacted>'
    ]
s
Can you post the event rule?
I believe the problem is the
arn
- that should point to the target ECS cluster.
👀 1
There's an example in the TF docs that gets dropped by our conversion process for reasons we would need to investigate (and fix), but that's how I figured it out: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target#example-ecs-run-task-w[…]and-task-override-usage
Folks running into difficulties because of dropped examples in the docs is a common issue with our users and a current area of focus for us. When you have a minute, please let me know if the solution worked for you.
j
Will update, thanks!
Copy code
const eventRule = new aws.cloudwatch.EventRule("event-rule", {
    name: `${pulumi.getProject()}-event-rule`,
    description: genericDescription,
    eventBusName: "default",
    scheduleExpression: "cron(1 0 * * ? *)",
}, {provider: targetAwsProvider});
Yes, the
eventTarget.d.ts
docs define
arn
as
ARN of the SQS queue specified as the target for the dead-letter queue.
success! Updating the
arn
to the cluster arn allowed the resource creation to finish. Thank you @stocky-restaurant-98004
s
You're most welcome!