question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AnalyticsApplicationOutput does not implement pulumi.Output (missing Apply method)

See original GitHub issue

Hello all. I’m receiving an error when creating a stream with the Kinesis library. This happened around the v2.18.2 SDK release (it was working prior) when running pulumi up or go get:

github.com/pulumi/pulumi-aws/sdk/v3/go/aws/kinesis
../../go/pkg/mod/github.com/pulumi/pulumi-aws/sdk/v3@v3.25.0/go/aws/kinesis/analyticsApplication.go:274:43: impossible type assertion:
	AnalyticsApplicationOutput does not implement pulumi.Output (missing Apply method)
../../go/pkg/mod/github.com/pulumi/pulumi-aws/sdk/v3@v3.25.0/go/aws/kinesis/pulumiTypes.go:2204:6: AnalyticsApplicationOutput redeclared in this block
	previous declaration at ../../go/pkg/mod/github.com/pulumi/pulumi-aws/sdk/v3@v3.25.0/go/aws/kinesis/analyticsApplication.go:356:6

and here’s the stream code:

  stream, err := kinesis.NewStream(ctx, "aws.chat.cmd.rooms.0", &kinesis.StreamArgs{
	  RetentionPeriod: pulumi.Int(24),
	  ShardCount: pulumi.Int(1),
	  ShardLevelMetrics: pulumi.StringArray{
		  pulumi.String("IncomingBytes"),
		  pulumi.String("OutgoingBytes"),
	  },
	  Tags: pulumi.StringMap{
			  "Environment": pulumi.String("staging"),
	  },
  })
  if err != nil {
	  return err
  }

I’ve tried downgrading to 2.18.0, but I received the same error. I’ve and tried go clean --modcache && go get to no avail. Any ideas?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
viveklakcommented, Jan 29, 2021

This will be fixed in 3.26.0.

0reactions
viveklakcommented, Jan 31, 2021

Apologies - looks like the change didn’t make it through to the SDK in 3.26.x. Its staged here https://github.com/pulumi/pulumi-aws/pull/1335 and should be available for the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intro to Pulumi: Inputs and Outputs
During some program executions, apply doesn't run. For example, it won't run during a preview, when resource output values may be unknown.
Read more >
[go/codegen] Reconsider golang name collision detection ...
AnalyticsApplicationOutput does not implement pulumi.Output (missing Apply method) pulumi/pulumi-aws#1321.
Read more >
How to use Pulumi Output<string> as a string in .NET
All is used to convert to Output<string[]> and .Apply is used to transform the array. You can learn more in Inputs and Outputs....
Read more >
Understanding Pulumi's apply | lbr. - Lee Briggs
This created a learning curve for me when trying out Pulumi, ... How do I get the value of this Output and use...
Read more >
@pulumi/cdk - npm
The Pulumi CDK Adapter is a library that enables Pulumi programs to use AWS CDK constructs. The adapter allows writing AWS CDK code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found