Pulumi.Aws.Route53.GetZone.InvokeAsync failed when invoking with Provider
See original GitHub issueTL;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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
works like a charm, thanks!
FYI I plan to start rolling that out across the providers tonight…