dry-engine-17210
11/20/2020, 6:48 PMpubsub_topic = pubsub.Topic(
"{}-topic".format(PUBSUB_TOPIC_PREFIX)
)
and...
logging_sink = logging.ProjectSink(
resource_name="{}-sink".format(LOGGING_SINK_PREFIX),
destination="pubsub.googleapis.com/{}".format(pubsub_topic.id),
filter='LOG_ID("cloudaudit.googleapis.com/activity") OR LOG_ID("externalaudit.googleapis.com/activity") OR LOG_ID("cloudaudit.googleapis.com/system_event") OR LOG_ID("externalaudit.googleapis.com/system_event") OR LOG_ID("cloudaudit.googleapis.com/access_transparency") OR LOG_ID("externalaudit.googleapis.com/access_transparency")',
opts=ResourceOptions(
depends_on=[pubsub_topic]
),
)
Pulumi fails with:
gcp:logging:ProjectSink (dev-sink):
error: 1 error occurred:
* googleapi: Error 400: Cloud Pub/Sub URL is missing projects/[PROJECT_ID], badRequest
When I look at "details" view, I see this:
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::infrastructure::pulumi:pulumi:Stack::infrastructure-dev]
+ gcp:logging/projectSink:ProjectSink: (create)
[urn=urn:pulumi:dev::infrastructure::gcp:logging/projectSink:ProjectSink::dev-sink]
[provider=urn:pulumi:dev::infrastructure::pulumi:providers:gcp::default_4_3_0::4d0f3a00-dc97-4725-b036-499ca6b7f522]
destination : "pubsub.googleapis.com/<pulumi.output.Output object at 0x112b44640>"
filter : "LOG_ID(\"cloudaudit.googleapis.com/activity\") OR LOG_ID(\"externalaudit.googleapis.com/activity\") OR LOG_ID(\"cloudaudit.googleapis.com/system_event\") OR LOG_ID(\"externalaudit.googleapis.com/system_event\") OR LOG_ID(\"cloudaudit.googleapis.com/access_transparency\") OR LOG_ID(\"externalaudit.googleapis.com/access_transparency\")"
name : "dev-sink-bf1e116"
uniqueWriterIdentity: false
When I see <pulumi.output.Output object at 0x112b44640> in the destination, it makes me think Pulumi hasn't deserialized the actual name, or there is some deferred evaluation that isn't happening?
Any suggestions on how to troubleshoot?