Skip to content

Commit

Permalink
fix(azure): upgrade az pulumi plugin and reconfigure api management a…
Browse files Browse the repository at this point in the history
…uth (#615)

upgrade az pulumi plugin and reconfigure api management auth
  • Loading branch information
tjholm authored May 10, 2024
1 parent 997c607 commit b69ea25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cloud/azure/deploy/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/getkin/kin-openapi/openapi3"
"github.com/pkg/errors"
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v20201201"
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

common "github.com/nitrictech/nitric/cloud/common/deploy/tags"
Expand Down Expand Up @@ -222,7 +222,7 @@ func (p *NitricAzurePulumiProvider) Api(ctx *pulumi.Context, parent pulumi.Resou
OperationId: pulumi.String(op.OperationID),
PolicyId: pulumi.String("policy"),
Format: pulumi.String("xml"),
Value: pulumi.Sprintf(policyTemplate, pulumi.Sprintf("%s%s%s", app.App.LatestRevisionFqdn, "/x-nitric-api/", name), jwtTemplateString, p.ContainerEnv.ManagedUser.ClientId, p.ContainerEnv.ManagedUser.ClientId),
Value: pulumi.Sprintf(policyTemplate, pulumi.Sprintf("%s%s%s", app.App.LatestRevisionFqdn, "/x-nitric-api/", name), jwtTemplateString, app.Sp.ClientID, p.ContainerEnv.ManagedUser.ClientId),
}, pulumi.Parent(api))
if err != nil {
return errors.WithMessage(err, "NewApiOperationPolicy "+op.OperationID)
Expand Down
4 changes: 2 additions & 2 deletions cloud/azure/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/nitrictech/nitric/core/pkg/logger"
resourcespb "github.com/nitrictech/nitric/core/pkg/proto/resources/v1"
"github.com/pkg/errors"
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v20201201"
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi-azure-native-sdk/authorization"
"github.com/pulumi/pulumi-azure-native-sdk/eventgrid"
"github.com/pulumi/pulumi-azure-native-sdk/keyvault"
Expand Down Expand Up @@ -84,7 +84,7 @@ type NitricAzurePulumiProvider struct {
var _ provider.NitricPulumiProvider = (*NitricAzurePulumiProvider)(nil)

const (
pulumiAzureNativeVersion = "1.95.0"
pulumiAzureNativeVersion = "2.40.0"
pulumiAzureVersion = "5.52.0"
)

Expand Down
2 changes: 1 addition & 1 deletion cloud/azure/deploy/httpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/nitrictech/nitric/cloud/common/deploy/resources"
deploymentspb "github.com/nitrictech/nitric/core/pkg/proto/deployments/v1"
"github.com/pkg/errors"
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v20201201"
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi-azure-native-sdk/managedidentity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

Expand Down

0 comments on commit b69ea25

Please sign in to comment.