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.

Pulumi.Aws.Route53.GetZone.InvokeAsync failed when invoking with Provider

See original GitHub issue

TL;DR

Pulumi.Aws.Route53.GetZone.InvokeAsync always failed when specifying Provider. It can run when not specifying Provider.

Runtime

.NET Core / C#

Reproduce

// success
var zone = await Pulumi.Aws.Route53.GetZone.InvokeAsync(new GetZoneArgs
{
    Name = "example.com.",
    PrivateZone = false,
});

// always error
var sampleProvider = new Provider("sample", new ProviderArgs
{
    AccessKey = config.RequireSecret("SAMPLE_AWS_ACCESS_KEY"),
    SecretKey = config.RequireSecret("SAMPLE_AWS_SECRET_KEY"),
    Region = "us-east-1", // error even if not specify or any region
}, new CustomResourceOptions { });
var providerZone = await Pulumi.Aws.Route53.GetZone.InvokeAsync(new Pulumi.Aws.Route53.GetZoneArgs
{
    Name = "sample.example.com.",
    PrivateZone = false,
}, new InvokeOptions { Provider = sampleProvider });

Error

Grpc.Core.RpcException: Status(StatusCode=Unknown, Detail="invocation of aws:route53/getZone:getZone returned an error: Invalid AWS Region: "us-east-1"")
    at Pulumi.GrpcMonitor.InvokeAsync(InvokeRequest request)
    at Pulumi.Deployment.InvokeAsync[T](String token, InvokeArgs args, InvokeOptions options, Boolean convertResult)

Version

    <PackageReference Update="Pulumi.Aws" Version="2.3.0" />
    <PackageReference Update="Pulumi" Version="2.1.0" />

REF

it happens when pulumi-aws 2.3.0, but not happen on 1.29.0-preview.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
guitarrapccommented, Jun 8, 2020

works like a charm, thanks!

1reaction
stack72commented, May 27, 2020

FYI I plan to start rolling that out across the providers tonight…

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws.route53.getZone - Pulumi
Documentation for the aws.route53.getZone function with examples, input properties, output properties, and supporting types.
Read more >
aws.route53.getDelegationSet - Pulumi
Documentation for the aws.route53.getDelegationSet function with examples, input properties, output properties, and supporting types.
Read more >
aws-native.route53.getHostedZone - Pulumi
Documentation for the aws-native.route53.getHostedZone function with examples, input properties, output properties, and supporting types.
Read more >
aws.route53.getResolverRule - Pulumi
Documentation for the aws.route53.getResolverRule function with examples, input properties, output properties, and supporting types.
Read more >
aws.route53.getResolverFirewallConfig - Pulumi
Documentation for the aws.route53. ... The following example shows how to get a firewall config using the VPC ID. using System.Collections.
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